summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2006-03-17 21:43:51 +0000
committerderaadt <deraadt@openbsd.org>2006-03-17 21:43:51 +0000
commit8757d40c999c8ecb7ea974af484c51a2dcb703dc (patch)
treef46bae515eb7d7a188cdfe3cf1a5b362cfcc432d
parentFix single-stepping via ptrace(2); ok art@ kettenis@ (diff)
downloadwireguard-openbsd-8757d40c999c8ecb7ea974af484c51a2dcb703dc.tar.xz
wireguard-openbsd-8757d40c999c8ecb7ea974af484c51a2dcb703dc.zip
size_t size()
-rw-r--r--usr.bin/tip/tip.c8
-rw-r--r--usr.bin/tip/tip.h4
2 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/tip/tip.c b/usr.bin/tip/tip.c
index 7d00d117203..c6ffbf5faf9 100644
--- a/usr.bin/tip/tip.c
+++ b/usr.bin/tip/tip.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tip.c,v 1.27 2006/03/17 19:39:46 deraadt Exp $ */
+/* $OpenBSD: tip.c,v 1.28 2006/03/17 21:43:51 deraadt Exp $ */
/* $NetBSD: tip.c,v 1.13 1997/04/20 00:03:05 mellon Exp $ */
/*
@@ -40,7 +40,7 @@ static const char copyright[] =
#if 0
static char sccsid[] = "@(#)tip.c 8.1 (Berkeley) 6/6/93";
#endif
-static const char rcsid[] = "$OpenBSD: tip.c,v 1.27 2006/03/17 19:39:46 deraadt Exp $";
+static const char rcsid[] = "$OpenBSD: tip.c,v 1.28 2006/03/17 21:43:51 deraadt Exp $";
#endif /* not lint */
/*
@@ -448,10 +448,10 @@ any(int cc, char *p)
return (0);
}
-int
+size_t
size(char *s)
{
- int i = 0;
+ size_t i = 0;
while (s && *s++)
i++;
diff --git a/usr.bin/tip/tip.h b/usr.bin/tip/tip.h
index 8b75cafc034..0fbe15488af 100644
--- a/usr.bin/tip/tip.h
+++ b/usr.bin/tip/tip.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: tip.h,v 1.24 2006/03/17 19:39:46 deraadt Exp $ */
+/* $OpenBSD: tip.h,v 1.25 2006/03/17 21:43:51 deraadt Exp $ */
/* $NetBSD: tip.h,v 1.7 1997/04/20 00:02:46 mellon Exp $ */
/*
@@ -285,7 +285,7 @@ int df03_dialer(char *, char *);
int dn_dialer(char *, char *);
int hay_dialer(char *, char *);
int prompt(char *, char *, size_t);
-int size(char *);
+size_t size(char *);
int t3000_dialer(char *, char *);
int ttysetup(int);
int uu_lock(char *);