From: Huawei Xie Date: Wed, 8 Oct 2014 18:54:55 +0000 (+0800) Subject: vhost: static variable fixes X-Git-Tag: spdx-start~10284 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=38726fb1b69648c8ca81862552aad8395d6b9bd6;p=dpdk.git vhost: static variable fixes Add "static" for some variable definitions. Signed-off-by: Huawei Xie Acked-by: Changchun Ouyang --- diff --git a/lib/librte_vhost/vhost-net-cdev.c b/lib/librte_vhost/vhost-net-cdev.c index 4dbd295dbf..ce9f4ae484 100644 --- a/lib/librte_vhost/vhost-net-cdev.c +++ b/lib/librte_vhost/vhost-net-cdev.c @@ -50,10 +50,10 @@ #define FUSE_OPT_FORE "-f\0\0" #define FUSE_OPT_NOMULTI "-s\0\0" -const uint32_t default_major = 231; -const uint32_t default_minor = 1; -const char cuse_device_name[] = "/dev/cuse"; -const char default_cdev[] = "vhost-net"; +static const uint32_t default_major = 231; +static const uint32_t default_minor = 1; +static const char cuse_device_name[] = "/dev/cuse"; +static const char default_cdev[] = "vhost-net"; static struct fuse_session *session; static struct vhost_net_device_ops const *ops;