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;
}
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);
@ -332,13 +332,13 @@ int main(int argc, char *argv[])
}
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: