Got rid of some warnings for unused variables.

This commit is contained in:
Joakim Söderberg 2013-03-13 00:15:37 +01:00
parent b1b4f307d5
commit 59bc1f42e4

View File

@ -146,7 +146,7 @@ static int cmpfile(const char *str, const char *path, const char *fname)
return ret; return ret;
} }
int use_conf(int argc, char **argv, char *test_path) int use_conf(char *test_path)
{ {
int ret; int ret;
size_t flags = 0; size_t flags = 0;
@ -233,7 +233,7 @@ static int getenv_int(const char *name)
return (int)result; return (int)result;
} }
int use_env(int argc, char **argv) int use_env()
{ {
int indent; int indent;
size_t flags = 0; size_t flags = 0;
@ -274,7 +274,7 @@ int use_env(int argc, char **argv)
char *buffer = NULL; char *buffer = NULL;
while(1) { while(1) {
int count; size_t count;
size = (size == 0 ? 128 : size * 2); size = (size == 0 ? 128 : size * 2);
buffer = realloc(buffer, size); buffer = realloc(buffer, size);
@ -332,13 +332,13 @@ int main(int argc, char *argv[])
} }
if (conf.use_env) if (conf.use_env)
return use_env(argc, argv); return use_env();
else else
{ {
if (!test_path) if (!test_path)
goto usage; goto usage;
return use_conf(argc, argv, test_path); return use_conf(test_path);
} }
usage: usage: