aboutsummaryrefslogtreecommitdiffstats
path: root/mount.cifs.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@samba.org>2013-07-18 10:14:21 -0400
committerJeff Layton <jlayton@samba.org>2013-07-18 10:14:21 -0400
commite18d42adddbea9178d93b6051132f9cdee4cc9e0 (patch)
tree36531a5d2b9f74bd818f3667754b5efa85f41f50 /mount.cifs.c
parentfe230e5ecaed98d3bb70292b60d44c3c7c47c720 (diff)
downloadcifs-utils-e18d42adddbea9178d93b6051132f9cdee4cc9e0.tar.gz
cifs-utils-e18d42adddbea9178d93b6051132f9cdee4cc9e0.tar.xz
cifs-utils-e18d42adddbea9178d93b6051132f9cdee4cc9e0.zip
cifs-utils: fix some sparse warnings
Signed-off-by: Jeff Layton <jlayton@samba.org>
Diffstat (limited to 'mount.cifs.c')
-rw-r--r--mount.cifs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mount.cifs.c b/mount.cifs.c
index 3b2b89e..12f1b8e 100644
--- a/mount.cifs.c
+++ b/mount.cifs.c
@@ -182,8 +182,8 @@ struct parsed_mount_info {
unsigned int nofail:1;
};
-const char *thisprogram;
-const char *cifs_fstype = "cifs";
+static const char *thisprogram;
+static const char *cifs_fstype = "cifs";
static int parse_unc(const char *unc_name, struct parsed_mount_info *parsed_info);
@@ -1899,7 +1899,7 @@ int main(int argc, char **argv)
thisprogram = "mount.cifs";
/* allocate parsed_info as shared anonymous memory range */
- parsed_info = mmap(0, sizeof(*parsed_info), PROT_READ | PROT_WRITE,
+ parsed_info = mmap((void *)0, sizeof(*parsed_info), PROT_READ | PROT_WRITE,
MAP_ANONYMOUS | MAP_SHARED, -1, 0);
if (parsed_info == (struct parsed_mount_info *) -1) {
parsed_info = NULL;