diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-08-07 00:38:34 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-08-07 00:38:34 +0000 |
commit | 6199f15e3e0651e8399ad97e919a96d69d128ee2 (patch) | |
tree | cde8dbb44682b9bafafa3ec82a63352162d5cf59 /sys/lib/libkern/strlcpy.c | |
parent | f8b1d50fcd985a3171e1d491c63c553aff62c2a7 (diff) |
ansi and some missing protos
Diffstat (limited to 'sys/lib/libkern/strlcpy.c')
-rw-r--r-- | sys/lib/libkern/strlcpy.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/lib/libkern/strlcpy.c b/sys/lib/libkern/strlcpy.c index 7355cdf1ad4..b5150b7a05a 100644 --- a/sys/lib/libkern/strlcpy.c +++ b/sys/lib/libkern/strlcpy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: strlcpy.c,v 1.4 2003/06/17 21:56:25 millert Exp $ */ +/* $OpenBSD: strlcpy.c,v 1.5 2004/08/07 00:38:33 deraadt Exp $ */ /* * Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com> @@ -17,7 +17,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: strlcpy.c,v 1.4 2003/06/17 21:56:25 millert Exp $"; +static char *rcsid = "$OpenBSD: strlcpy.c,v 1.5 2004/08/07 00:38:33 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ #if !defined(_KERNEL) && !defined(_STANDALONE) @@ -35,9 +35,9 @@ static char *rcsid = "$OpenBSD: strlcpy.c,v 1.4 2003/06/17 21:56:25 millert Exp size_t strlcpy(char *dst, const char *src, size_t siz) { - register char *d = dst; - register const char *s = src; - register size_t n = siz; + char *d = dst; + const char *s = src; + size_t n = siz; /* Copy as many bytes as will fit */ if (n != 0 && --n != 0) { |