summaryrefslogtreecommitdiff
path: root/src/mount
diff options
context:
space:
mode:
authorJosh Pieper <jjp@pobox.com>2011-11-11 08:19:02 -0500
committerSage Weil <sage@newdream.net>2011-11-14 13:23:18 -0800
commitcd90061239a598f6fca94326b6d2c32f325c96eb (patch)
tree8aff8463cf456a9dcf7797db71351f9dd8929103 /src/mount
parenta5b8c8518fa0a0bbcd8313d5167a2789cae547c3 (diff)
downloadceph-cd90061239a598f6fca94326b6d2c32f325c96eb.tar.gz
Resolve gcc warnings.
These should have no functional changes: * Check errors from functions that currently cannot return any * Initialize variables that gcc can't determine will be initialized in a following function call * Remove unused variables Signed-off-by: Josh Pieper <jjp@pobox.com> Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'src/mount')
-rwxr-xr-xsrc/mount/mount.ceph.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/mount/mount.ceph.c b/src/mount/mount.ceph.c
index e7a247dfaef..46dd2e2b9c2 100755
--- a/src/mount/mount.ceph.c
+++ b/src/mount/mount.ceph.c
@@ -86,7 +86,6 @@ static char *parse_options(const char *data, int *filesys_flags)
int word_len;
int skip;
int pos = 0;
- char *newdata = 0;
char secret[MAX_SECRET_LEN];
char *saw_name = NULL;
char *saw_secret = NULL;
@@ -99,7 +98,6 @@ static char *parse_options(const char *data, int *filesys_flags)
if(*data == 0)
break;
next_keyword = strchr(data,',');
- newdata = 0;
/* temporarily null terminate end of keyword=value pair */
if(next_keyword)