From 816bee1fa0d833ac72ea4e7d52465e6e1da2645d Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 10 Aug 2011 14:11:30 +0200 Subject: Fixed set but unused variable bugs --- common/t-exechelp.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'common/t-exechelp.c') diff --git a/common/t-exechelp.c b/common/t-exechelp.c index e4c88d126..19079d331 100644 --- a/common/t-exechelp.c +++ b/common/t-exechelp.c @@ -76,7 +76,6 @@ test_close_all_fds (void) int max_fd = get_max_fds (); int *array; int fd; - int dummy_fd; int initial_count, count, n; #if 0 char buffer[100]; @@ -93,10 +92,10 @@ test_close_all_fds (void) free (array); /* Some dups to get more file descriptors and close one. */ - dummy_fd = dup (1); - dummy_fd = dup (1); + dup (1); + dup (1); fd = dup (1); - dummy_fd = dup (1); + dup (1); close (fd); array = xget_all_open_fds (); @@ -137,14 +136,14 @@ test_close_all_fds (void) int except[] = { 20, 23, 24, -1 }; for (n=initial_count; n < 31; n++) - dummy_fd = dup (1); + dup (1); array = xget_all_open_fds (); if (verbose) print_open_fds (array); free (array); for (n=0; n < 5; n++) { - dummy_fd = dup (1); + dup (1); array = xget_all_open_fds (); if (verbose) print_open_fds (array); -- cgit v1.2.3