From: Garrett Wollman Date: Sun, 7 Aug 2011 04:35:36 +0000 (-0400) Subject: afsd: look in the right place for -splitcache argument X-Git-Tag: upstream/1.6.0^2~45 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=b8f95c1535538ddd4631a9b8d7286df030accc5a;p=packages%2Fo%2Fopenafs.git afsd: look in the right place for -splitcache argument The argument to -splitcache is in as->parms[34], not [30]. Found-by: clang static analyzer Reviewed-on: http://gerrit.openafs.org/5169 Tested-by: BuildBot Reviewed-by: Simon Wilkinson Reviewed-by: Derrick Brashear (cherry picked from commit 90ea68979c6740583747d0af500ed4a034eba651) Change-Id: Iff8072cf8c7b5d9a5d7486fc9778f079fab1426c Reviewed-on: http://gerrit.openafs.org/5223 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- diff --git a/src/afsd/afsd.c b/src/afsd/afsd.c index 8dbd3efe7..5822530f5 100644 --- a/src/afsd/afsd.c +++ b/src/afsd/afsd.c @@ -1874,7 +1874,7 @@ mainproc(struct cmd_syndesc *as, void *arock) else { ropct = atoi((char *)c + 1); *c = '\0'; - rwpct = atoi((char *)as->parms[30].items->data); + rwpct = atoi((char *)as->parms[34].items->data); if ((rwpct != 0) && (ropct != 0) && (ropct + rwpct == 100)) { /* -splitcache */ enable_splitcache = 1;