vhost: static variable fixes
authorHuawei Xie <huawei.xie@intel.com>
Wed, 8 Oct 2014 18:54:55 +0000 (02:54 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 13 Oct 2014 17:16:54 +0000 (19:16 +0200)
Add "static" for some variable definitions.

Signed-off-by: Huawei Xie <huawei.xie@intel.com>
Acked-by: Changchun Ouyang <changchun.ouyang@intel.com>
lib/librte_vhost/vhost-net-cdev.c

index 4dbd295..ce9f4ae 100644 (file)
 #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;