summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorPedro Martelletto <pedro@cvs.openbsd.org>2004-05-31 15:48:27 +0000
committerPedro Martelletto <pedro@cvs.openbsd.org>2004-05-31 15:48:27 +0000
commit8982b5e0858abbf4a787540503ab68b8b24aa3ef (patch)
tree897b3fa3e60ea746a7f9c926c089defd62ee6d38 /usr.bin
parentfca99464be8305e4c5f51c80d5333a9b886cb9c8 (diff)
zap unused variables, ok beck@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/id/id.c5
-rw-r--r--usr.bin/printf/printf.c5
-rw-r--r--usr.bin/sup/src/supcmain.c4
-rw-r--r--usr.bin/sup/src/supfilesrv.c4
4 files changed, 6 insertions, 12 deletions
diff --git a/usr.bin/id/id.c b/usr.bin/id/id.c
index 63dfe534ae8..c015b94ed3d 100644
--- a/usr.bin/id/id.c
+++ b/usr.bin/id/id.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: id.c,v 1.14 2004/01/07 22:18:14 tdeval Exp $ */
+/* $OpenBSD: id.c,v 1.15 2004/05/31 15:48:26 pedro Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -37,7 +37,7 @@ static char copyright[] =
#ifndef lint
/*static char sccsid[] = "@(#)id.c 8.3 (Berkeley) 4/28/95";*/
-static char rcsid[] = "$OpenBSD: id.c,v 1.14 2004/01/07 22:18:14 tdeval Exp $";
+static char rcsid[] = "$OpenBSD: id.c,v 1.15 2004/05/31 15:48:26 pedro Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -260,7 +260,6 @@ group(struct passwd *pw, int nflag)
{
int cnt, ngroups;
gid_t gid, groups[NGROUPS + 1];
- uid_t uid;
struct group *gr;
char *fmt;
diff --git a/usr.bin/printf/printf.c b/usr.bin/printf/printf.c
index 2ce53bb8e0e..64c6dadc0dc 100644
--- a/usr.bin/printf/printf.c
+++ b/usr.bin/printf/printf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: printf.c,v 1.11 2003/06/23 16:40:44 millert Exp $ */
+/* $OpenBSD: printf.c,v 1.12 2004/05/31 15:48:26 pedro Exp $ */
/*
* Copyright (c) 1989 The Regents of the University of California.
@@ -39,7 +39,7 @@ char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)printf.c 5.9 (Berkeley) 6/1/90";*/
-static char rcsid[] = "$OpenBSD: printf.c,v 1.11 2003/06/23 16:40:44 millert Exp $";
+static char rcsid[] = "$OpenBSD: printf.c,v 1.12 2004/05/31 15:48:26 pedro Exp $";
#endif /* not lint */
#include <ctype.h>
@@ -114,7 +114,6 @@ main(int argc, char *argv[])
int fieldwidth, precision;
char convch, nextch;
char *format;
- int ch;
#if !defined(SHELL) && !defined(BUILTIN)
setlocale (LC_ALL, "");
diff --git a/usr.bin/sup/src/supcmain.c b/usr.bin/sup/src/supcmain.c
index 099bdcddccb..b9b16f127d2 100644
--- a/usr.bin/sup/src/supcmain.c
+++ b/usr.bin/sup/src/supcmain.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: supcmain.c,v 1.18 2004/01/23 03:48:43 deraadt Exp $ */
+/* $OpenBSD: supcmain.c,v 1.19 2004/05/31 15:48:26 pedro Exp $ */
/*
* Copyright (c) 1992 Carnegie Mellon University
@@ -412,8 +412,6 @@ main(argc, argv)
endpwent(); /* close /etc/passwd */
endgrent(); /* close /etc/group */
if (restart == 1) {
- int fd;
-
if (!silent)
loginfo("SUP Restarting %s with new supfile %s",
progname, supfname);
diff --git a/usr.bin/sup/src/supfilesrv.c b/usr.bin/sup/src/supfilesrv.c
index e7cbc03fac4..31709e08f20 100644
--- a/usr.bin/sup/src/supfilesrv.c
+++ b/usr.bin/sup/src/supfilesrv.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: supfilesrv.c,v 1.33 2004/01/23 03:48:43 deraadt Exp $ */
+/* $OpenBSD: supfilesrv.c,v 1.34 2004/05/31 15:48:26 pedro Exp $ */
/*
* Copyright (c) 1992 Carnegie Mellon University
@@ -740,8 +740,6 @@ answer()
docrypt();
srvlogin();
if (xpatch) {
- int fd;
-
x = msgxpatch();
if (x != SCMOK)
exit(0);