summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-03-25 16:41:44 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-03-25 16:41:44 +0000
commitdb5a38609339b1bfe019d45765b5405bdd580a54 (patch)
tree5af9ccd1c469de25e74d8b970c3fab1aa3235f1c
parenta4b7ca99e8620eb800e0ae6b1e31d12f8c2ef1db (diff)
bring in prototypes
-rw-r--r--gnu/lib/libreadline/savestring.c2
-rw-r--r--usr.bin/tip/tip.c13
-rw-r--r--usr.sbin/kvm_mkdb/nlist.c6
3 files changed, 13 insertions, 8 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/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;