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: openafs-devel-1_7_1~181 X-Git-Url: https://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=90ea68979c6740583747d0af500ed4a034eba651 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 16d3451..9576e40 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;