From 59bc1f42e45aa9bfd255c6002b0659e26c16e23f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20So=CC=88derberg?= Date: Wed, 13 Mar 2013 00:15:37 +0100 Subject: [PATCH] Got rid of some warnings for unused variables. --- test/bin/json_process.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/bin/json_process.c b/test/bin/json_process.c index 168d057..15eec5a 100644 --- a/test/bin/json_process.c +++ b/test/bin/json_process.c @@ -146,7 +146,7 @@ static int cmpfile(const char *str, const char *path, const char *fname) return ret; } -int use_conf(int argc, char **argv, char *test_path) +int use_conf(char *test_path) { int ret; size_t flags = 0; @@ -233,7 +233,7 @@ static int getenv_int(const char *name) return (int)result; } -int use_env(int argc, char **argv) +int use_env() { int indent; size_t flags = 0; @@ -274,7 +274,7 @@ int use_env(int argc, char **argv) char *buffer = NULL; while(1) { - int count; + size_t count; size = (size == 0 ? 128 : size * 2); buffer = realloc(buffer, size); @@ -330,15 +330,15 @@ int main(int argc, char *argv[]) else test_path = argv[i]; } - + if (conf.use_env) - return use_env(argc, argv); + return use_env(); else { if (!test_path) goto usage; - return use_conf(argc, argv, test_path); + return use_conf(test_path); } usage: