diff options
author | 2002-03-25 16:41:17 +0000 | |
---|---|---|
committer | 2002-03-25 16:41:17 +0000 | |
commit | d3be03746b027b626ff6ecf1f8077e876d84c9fa (patch) | |
tree | 781f75c1bd7d11a5ac2b1f5c5422878d8d31106a | |
parent | change the extra text following preprocessor directives into comments. (diff) | |
download | wireguard-openbsd-d3be03746b027b626ff6ecf1f8077e876d84c9fa.tar.xz wireguard-openbsd-d3be03746b027b626ff6ecf1f8077e876d84c9fa.zip |
bring in prototypes
-rw-r--r-- | gnu/lib/libreadline/savestring.c | 2 | ||||
-rw-r--r-- | usr.bin/ktrace/ktrace.c | 5 | ||||
-rw-r--r-- | usr.bin/tip/tip.c | 13 | ||||
-rw-r--r-- | usr.sbin/kvm_mkdb/nlist.c | 6 |
4 files changed, 16 insertions, 10 deletions
diff --git a/gnu/lib/libreadline/savestring.c b/gnu/lib/libreadline/savestring.c index 485890ea57c..0916ab8b0a4 100644 --- a/gnu/lib/libreadline/savestring.c +++ b/gnu/lib/libreadline/savestring.c @@ -20,6 +20,8 @@ have a copy of the license, write to the Free Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111 USA. */ +#include <string.h> + extern char *strcpy (); extern char *xmalloc (); diff --git a/usr.bin/ktrace/ktrace.c b/usr.bin/ktrace/ktrace.c index 1428d0afcc5..3c953357acc 100644 --- a/usr.bin/ktrace/ktrace.c +++ b/usr.bin/ktrace/ktrace.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ktrace.c,v 1.13 2002/02/16 21:27:47 millert Exp $ */ +/* $OpenBSD: ktrace.c,v 1.14 2002/03/25 16:46:28 deraadt Exp $ */ /* $NetBSD: ktrace.c,v 1.4 1995/08/31 23:01:44 jtc Exp $ */ /*- @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)ktrace.c 8.2 (Berkeley) 4/28/95"; #endif -static char *rcsid = "$OpenBSD: ktrace.c,v 1.13 2002/02/16 21:27:47 millert Exp $"; +static char *rcsid = "$OpenBSD: ktrace.c,v 1.14 2002/03/25 16:46:28 deraadt Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -58,6 +58,7 @@ static char *rcsid = "$OpenBSD: ktrace.c,v 1.13 2002/02/16 21:27:47 millert Exp #include <fcntl.h> #include <stdlib.h> #include <stdio.h> +#include <string.h> #include <unistd.h> #include "ktrace.h" diff --git a/usr.bin/tip/tip.c b/usr.bin/tip/tip.c index 977e2c976ab..c96ab26376f 100644 --- a/usr.bin/tip/tip.c +++ b/usr.bin/tip/tip.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tip.c,v 1.16 2002/02/25 00:20:19 deraadt Exp $ */ +/* $OpenBSD: tip.c,v 1.17 2002/03/25 16:41:36 deraadt Exp $ */ /* $NetBSD: tip.c,v 1.13 1997/04/20 00:03:05 mellon Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)tip.c 8.1 (Berkeley) 6/6/93"; #endif -static char rcsid[] = "$OpenBSD: tip.c,v 1.16 2002/02/25 00:20:19 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: tip.c,v 1.17 2002/03/25 16:41:36 deraadt Exp $"; #endif /* not lint */ /* @@ -372,6 +372,7 @@ tipin() { char bol = 1; int gch; + char ch; /* * Kinda klugey here... @@ -398,7 +399,8 @@ tipin() continue; } else if (gch == '\r') { bol = 1; - parwrite(FD, &gch, 1); + ch = gch; + parwrite(FD, &ch, 1); if (boolean(value(HALFDUPLEX))) printf("\r\n"); continue; @@ -407,9 +409,10 @@ tipin() bol = any(gch, value(EOL)); if (boolean(value(RAISE)) && islower(gch)) gch = toupper(gch); - parwrite(FD, &gch, 1); + ch = gch; + parwrite(FD, &ch, 1); if (boolean(value(HALFDUPLEX))) - printf("%c", gch); + printf("%c", ch); } } diff --git a/usr.sbin/kvm_mkdb/nlist.c b/usr.sbin/kvm_mkdb/nlist.c index 580f1a1876a..901529153bf 100644 --- a/usr.sbin/kvm_mkdb/nlist.c +++ b/usr.sbin/kvm_mkdb/nlist.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nlist.c,v 1.25 2002/03/14 16:44:25 mpech Exp $ */ +/* $OpenBSD: nlist.c,v 1.26 2002/03/25 16:41:43 deraadt Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "from: @(#)nlist.c 8.1 (Berkeley) 6/6/93"; #else -static char *rcsid = "$OpenBSD: nlist.c,v 1.25 2002/03/14 16:44:25 mpech Exp $"; +static char *rcsid = "$OpenBSD: nlist.c,v 1.26 2002/03/25 16:41:43 deraadt Exp $"; #endif #endif /* not lint */ @@ -480,7 +480,7 @@ __elf_knlist(fd, db, ksyms) * don't have real text or data. */ int mib[2]; - int len; + size_t len; char *p; mib[0] = CTL_KERN; |