From: Andrew Deason Date: Wed, 23 Dec 2009 20:23:30 +0000 (-0500) Subject: Fix warnings in fs.c with --enable-cache-bypass X-Git-Tag: openafs-devel-1_5_69~83 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=9651fd726f8cc5d7b2ebdadf48b7e22bf25d1715;p=packages%2Fo%2Fopenafs.git Fix warnings in fs.c with --enable-cache-bypass Fix some warnings in src/venus/fs.c so we can compile with --enable-cache-bypass and --enable-checking: -- Include ctype.h so isdigit gets a prototype -- Make BypassThresholdCmd have the proper signature -- Remove the unused 'size' variable Change-Id: I09afc6c04c990476226d1c2a751e23d3d39085b6 Reviewed-on: http://gerrit.openafs.org/1025 Tested-by: Andrew Deason Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- diff --git a/src/venus/fs.c b/src/venus/fs.c index 7e0a19f9a..b28d8192e 100644 --- a/src/venus/fs.c +++ b/src/venus/fs.c @@ -19,6 +19,7 @@ #include #include #include +#include #include #include #include @@ -1302,10 +1303,9 @@ UuidCmd(struct cmd_syndesc *as, void *arock) */ static int -BypassThresholdCmd(struct cmd_syndesc *as, char *arock) +BypassThresholdCmd(struct cmd_syndesc *as, void *arock) { afs_int32 code; - afs_int32 size; struct ViceIoctl blob; afs_int32 threshold_i, threshold_o; char *tp;