From: Benjamin Kaduk Date: Fri, 10 Jan 2014 04:40:09 +0000 (-0500) Subject: vol/salvaged.c: Remove unused variable X-Git-Tag: upstream/1.8.0_pre1^2~833 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=d72ed6ad4cb568c80d6d0d8e6445f1b2260df680;p=packages%2Fo%2Fopenafs.git vol/salvaged.c: Remove unused variable It was incremented from an uninitialized value, which caused a build error on the OS X 10.9 buildslave. Since it's unused, just remove it entirely. Change-Id: I845e9139ffd27ba7bf4e010cf4e5625658125486 Reviewed-on: http://gerrit.openafs.org/10698 Tested-by: BuildBot Reviewed-by: Mark Vitale Reviewed-by: Derrick Brashear --- diff --git a/src/vol/salvaged.c b/src/vol/salvaged.c index 44ba9c2ea..77f554173 100644 --- a/src/vol/salvaged.c +++ b/src/vol/salvaged.c @@ -191,7 +191,7 @@ enum optionsList { static int handleit(struct cmd_syndesc *opts, void *arock) { - char pname[100], *temp; + char pname[100]; afs_int32 seenpart = 0, seenvol = 0; VolumeId vid = 0; struct cmdline_rock *rock = (struct cmdline_rock *)arock; @@ -214,7 +214,6 @@ handleit(struct cmd_syndesc *opts, void *arock) if (cmd_OptionAsString(opts, OPT_parallel, &optstring) == 0) { if (strncmp(optstring, "all", 3) == 0) { PartsPerDisk = 1; - temp += 3; } if (strlen(optstring) != 0) { Parallel = atoi(optstring);