From: Ivana Hutarova Varekova Date: Mon, 6 Sep 2010 13:15:31 +0000 (+0200) Subject: fix two warning problems in programs in tests section X-Git-Tag: v0.37.1~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af53a11e8e5f27593f31a34739756d41a08b5416;p=thirdparty%2Flibcgroup.git fix two warning problems in programs in tests section This patch fixes these two warnings: setuid.c: In function ‘main’: setuid.c:38: warning: ‘ret’ may be used uninitialized in this function get_procs.c: In function ‘main’: get_procs.c:15: warning: unused variable ‘test’ Signed-off-by: Ivana Hutarova Varekova Signed-off-by: Jan Safranek --- diff --git a/tests/get_procs.c b/tests/get_procs.c index 424feeb2..caa84448 100644 --- a/tests/get_procs.c +++ b/tests/get_procs.c @@ -12,7 +12,6 @@ */ int main() { - int test; int size; pid_t *pids; int ret; diff --git a/tests/setuid.c b/tests/setuid.c index 4c8b80e3..c824511c 100644 --- a/tests/setuid.c +++ b/tests/setuid.c @@ -35,7 +35,7 @@ int main(int argc, char *argv[]) uid_t uid; /* Return codes */ - int ret; + int ret = 0; if (argc < 2) { printf("Usage: %s \n", argv[0]);