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.8.0_pre1^2~3433 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=90ea68979c6740583747d0af500ed4a034eba651;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]. Change-Id: I4d7be16a1ad99a03025c80f9782c4f678da868ae Found-by: clang static analyzer Reviewed-on: http://gerrit.openafs.org/5169 Tested-by: BuildBot Reviewed-by: Simon Wilkinson Reviewed-by: Derrick Brashear --- diff --git a/src/afsd/afsd.c b/src/afsd/afsd.c index 16d34513e..9576e407e 100644 --- a/src/afsd/afsd.c +++ b/src/afsd/afsd.c @@ -1870,7 +1870,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;