summaryrefslogtreecommitdiff
path: root/usr.bin/mg/dired.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2005-10-14 15:41:34 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2005-10-14 15:41:34 +0000
commite1fbce586f78a1c761ee1895e8d7d5275dea2bf9 (patch)
treeddeae6728d30c44b4ab1e75cf96f661a5d11c6c1 /usr.bin/mg/dired.c
parent7819466fd239a582d7dc565f314121ed0ddcd33b (diff)
unused variables
Diffstat (limited to 'usr.bin/mg/dired.c')
-rw-r--r--usr.bin/mg/dired.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/mg/dired.c b/usr.bin/mg/dired.c
index 23849227396..ea27d122850 100644
--- a/usr.bin/mg/dired.c
+++ b/usr.bin/mg/dired.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dired.c,v 1.24 2005/10/14 06:41:47 kjell Exp $ */
+/* $OpenBSD: dired.c,v 1.25 2005/10/14 15:41:33 deraadt Exp $ */
/* This file is in the public domain. */
@@ -10,6 +10,8 @@
#include "kbd.h"
#include <sys/types.h>
#include <sys/stat.h>
+#include <sys/time.h>
+#include <sys/resource.h>
#include <sys/wait.h>
#include <ctype.h>
@@ -393,9 +395,8 @@ void
reaper(int signo __attribute__((unused)))
{
int save_errno = errno, status;
- pid_t ret;
- while ((ret = waitpid(-1, &status, WNOHANG)) >= 0)
+ while (waitpid(-1, &status, WNOHANG) >= 0)
;
errno = save_errno;
}