diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2002-02-19 19:39:42 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2002-02-19 19:39:42 +0000 |
commit | 3923126b85f9e8a77cab9a41b5a62125acd5b4cd (patch) | |
tree | 1a8b19c5db03f8c989fc8228811837b182feb7a3 /usr.bin/rsh | |
parent | cc03bdb70090357d2393b6ec82e3cde4d5ce5edd (diff) |
We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.
Diffstat (limited to 'usr.bin/rsh')
-rw-r--r-- | usr.bin/rsh/rsh.c | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/usr.bin/rsh/rsh.c b/usr.bin/rsh/rsh.c index 1549077fd57..64b3bf31b55 100644 --- a/usr.bin/rsh/rsh.c +++ b/usr.bin/rsh/rsh.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rsh.c,v 1.24 2002/02/17 19:42:31 millert Exp $ */ +/* $OpenBSD: rsh.c,v 1.25 2002/02/19 19:39:39 millert Exp $ */ /*- * Copyright (c) 1983, 1990 The Regents of the University of California. @@ -41,7 +41,7 @@ char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)rsh.c 5.24 (Berkeley) 7/1/91";*/ -static char rcsid[] = "$OpenBSD: rsh.c,v 1.24 2002/02/17 19:42:31 millert Exp $"; +static char rcsid[] = "$OpenBSD: rsh.c,v 1.25 2002/02/19 19:39:39 millert Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -59,11 +59,7 @@ static char rcsid[] = "$OpenBSD: rsh.c,v 1.24 2002/02/17 19:42:31 millert Exp $" #include <unistd.h> #include <errno.h> #include <string.h> -#ifdef __STDC__ #include <stdarg.h> -#else -#include <varargs.h> -#endif #include "pathnames.h" #ifdef KERBEROS @@ -444,28 +440,15 @@ sendsig(signo) #ifdef KERBEROS /* VARARGS */ void -#ifdef __STDC__ warning(const char *fmt, ...) -#else -warning(va_alist) -va_dcl -#endif { va_list ap; -#ifndef __STDC__ - char *fmt; -#endif char myrealm[REALM_SZ]; if (krb_get_lrealm(myrealm, 0) != KSUCCESS) return; (void)fprintf(stderr, "rsh: warning, using standard rsh: "); -#ifdef __STDC__ va_start(ap, fmt); -#else - va_start(ap); - fmt = va_arg(ap, char *); -#endif vfprintf(stderr, fmt, ap); va_end(ap); (void)fprintf(stderr, ".\n"); |