From 9651fd726f8cc5d7b2ebdadf48b7e22bf25d1715 Mon Sep 17 00:00:00 2001 From: Andrew Deason Date: Wed, 23 Dec 2009 15:23:30 -0500 Subject: [PATCH] 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 --- src/venus/fs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.5