summaryrefslogtreecommitdiffstats
path: root/common/t-exechelp.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2011-08-10 14:11:30 +0200
committerWerner Koch <wk@gnupg.org>2011-08-10 14:11:30 +0200
commit816bee1fa0d833ac72ea4e7d52465e6e1da2645d (patch)
tree91be759197e74f2e32f821edecce8df6eb444742 /common/t-exechelp.c
parentFix autoconf warnings and update config.* files. (diff)
downloadgnupg2-816bee1fa0d833ac72ea4e7d52465e6e1da2645d.tar.xz
gnupg2-816bee1fa0d833ac72ea4e7d52465e6e1da2645d.zip
Fixed set but unused variable bugs
Diffstat (limited to 'common/t-exechelp.c')
-rw-r--r--common/t-exechelp.c11
1 files changed, 5 insertions, 6 deletions
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);