From af53a11e8e5f27593f31a34739756d41a08b5416 Mon Sep 17 00:00:00 2001 From: Ivana Hutarova Varekova Date: Mon, 6 Sep 2010 15:15:31 +0200 Subject: [PATCH] fix two warning problems in programs in tests section MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- tests/get_procs.c | 1 - tests/setuid.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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]); -- 2.47.2