diff options
author | Wayne Davison <wayned@samba.org> | 2003-08-22 00:31:46 +0000 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2003-08-22 00:31:46 +0000 |
commit | 24c906d3f7f4db31884d4262ddf9824d91ff4a76 (patch) | |
tree | adedb79ed25277269b70c3ed30c82f27e53322bd | |
parent | 14820f635d47f0fce574f71353cc038e8021e4af (diff) | |
download | android_external_rsync-24c906d3f7f4db31884d4262ddf9824d91ff4a76.tar.gz android_external_rsync-24c906d3f7f4db31884d4262ddf9824d91ff4a76.tar.bz2 android_external_rsync-24c906d3f7f4db31884d4262ddf9824d91ff4a76.zip |
Mark unused vars.
-rw-r--r-- | getgroups.c | 2 | ||||
-rw-r--r-- | t_stub.c | 11 |
2 files changed, 7 insertions, 6 deletions
diff --git a/getgroups.c b/getgroups.c index e747c290..78e2a88f 100644 --- a/getgroups.c +++ b/getgroups.c @@ -31,7 +31,7 @@ # define NGROUPS 32 #endif -int main(int argc, char *argv[]) +int main(UNUSED(int argc), UNUSED(char *argv[])) { int n, i; gid_t list[NGROUPS]; @@ -29,7 +29,7 @@ int modify_window = 0; struct exclude_struct **server_exclude_list; - void rprintf(enum logcode UNUSED(code), const char *format, ...) + void rprintf(UNUSED(enum logcode code), const char *format, ...) { va_list ap; va_start(ap, format); @@ -44,9 +44,10 @@ struct exclude_struct **server_exclude_list; exit(code); } - int check_exclude(struct exclude_struct **list, char *name, int name_is_dir) + int check_exclude(UNUSED(struct exclude_struct **list), UNUSED(char *name), + UNUSED(int name_is_dir)) { - /* This function doesn't really get called in a test context, so - * just reference our parameters to avoid compiler warnings. */ - return 0 && list && name && name_is_dir; + /* This function doesn't really get called in this test context, so + * just return 0. */ + return 0; } |