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 <[email protected]> --- tests/get_procs.c | 1 - tests/setuid.c | 2 +- 2 files changed, 1 insertions(+), 2 deletions(-) diff --git a/tests/get_procs.c b/tests/get_procs.c index 424feeb..caa8444 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 4c8b80e..c824511 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 <uid_value> \n", argv[0]); ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd _______________________________________________ Libcg-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libcg-devel
