summaryrefslogtreecommitdiff
path: root/usr.bin/mail/popen.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-09-15 22:21:12 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-09-15 22:21:12 +0000
commita82cc21c1d88b981d12bc183e359e823292be4b8 (patch)
treec7a787cef6732f2f0f34794c9f8c439518d16c57 /usr.bin/mail/popen.c
parentd534610181e5f63666fe35cc09faa45beb2acc5e (diff)
unused variable
Diffstat (limited to 'usr.bin/mail/popen.c')
-rw-r--r--usr.bin/mail/popen.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/usr.bin/mail/popen.c b/usr.bin/mail/popen.c
index b4d8c1e0f00..ed6bda6cb54 100644
--- a/usr.bin/mail/popen.c
+++ b/usr.bin/mail/popen.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: popen.c,v 1.33 2003/06/03 02:56:11 millert Exp $ */
+/* $OpenBSD: popen.c,v 1.34 2004/09/15 22:21:11 deraadt Exp $ */
/* $NetBSD: popen.c,v 1.6 1997/05/13 06:48:42 mikel Exp $ */
/*
@@ -34,7 +34,7 @@
#if 0
static const char sccsid[] = "@(#)popen.c 8.1 (Berkeley) 6/6/93";
#else
-static const char rcsid[] = "$OpenBSD: popen.c,v 1.33 2003/06/03 02:56:11 millert Exp $";
+static const char rcsid[] = "$OpenBSD: popen.c,v 1.34 2004/09/15 22:21:11 deraadt Exp $";
#endif
#endif /* not lint */
@@ -344,6 +344,7 @@ delchild(struct child *cp)
child_freelist = cp;
}
+/* ARGSUSED */
void
sigchild(int signo)
{
@@ -352,8 +353,7 @@ sigchild(int signo)
struct child *cp;
int save_errno = errno;
- while ((pid =
- waitpid((pid_t)-1, &status, WNOHANG)) > 0) {
+ while ((pid = waitpid((pid_t)-1, &status, WNOHANG)) > 0) {
cp = findchild(pid, 1);
if (!cp)
continue;
@@ -430,7 +430,6 @@ static int
handle_spool_locks(int action)
{
static FILE *lockfp = NULL;
- static pid_t lock_pid;
if (action == 0) {
/* Clear the lock */
@@ -462,7 +461,6 @@ handle_spool_locks(int action)
lockfp = NULL;
return(0);
}
- lock_pid = fp_head->pid; /* new entries added at head */
} else {
(void)fprintf(stderr, "handle_spool_locks: unknown action %d\n",
action);