diff options
author | Ingo Weinhold <ingo_weinhold@gmx.de> | 2011-07-11 20:36:06 +0000 |
---|---|---|
committer | Michael Schroeder <mls@suse.de> | 2012-01-17 17:45:03 +0100 |
commit | 5b0d7883a182851bee1f5d67164d747ba00e4d6d (patch) | |
tree | 13e4e07d5d7f7472dbfee2e2b08c26341b3db532 /tools/patchcheck.c | |
parent | 2401fc9a4324d9f92fb2e32109f18f513f12a79f (diff) | |
download | libsolv-5b0d7883a182851bee1f5d67164d747ba00e4d6d.tar.gz libsolv-5b0d7883a182851bee1f5d67164d747ba00e4d6d.tar.bz2 libsolv-5b0d7883a182851bee1f5d67164d747ba00e4d6d.zip |
Make more C89 and POSIX compliant
Diffstat (limited to 'tools/patchcheck.c')
-rw-r--r-- | tools/patchcheck.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/patchcheck.c b/tools/patchcheck.c index 1414a2b..9ffdcb6 100644 --- a/tools/patchcheck.c +++ b/tools/patchcheck.c @@ -488,6 +488,7 @@ main(int argc, char **argv) Id pid, p, pp; int tests = 0; context_t c; + static const char* langs[] = {"en"}; c.install_available = 0; c.updatestart = 0; @@ -499,7 +500,6 @@ main(int argc, char **argv) arch = argv[1]; pool = pool_create(); pool_setarch(pool, arch); - static const char* langs[] = {"en"}; pool_set_languages(pool, langs, 1); #if 0 @@ -570,8 +570,9 @@ main(int argc, char **argv) for (pid = 1; pid < pool->nsolvables; pid++) { + Solvable *s; c.shown = 0; - Solvable *s = pool->solvables + pid; + s = pool->solvables + pid; if (!s->repo) continue; if (!pool_installable(pool, s)) |