diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2003-03-14 14:34:25 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2003-03-14 14:34:25 +0000 |
commit | 6f1e09e3665e3b4fbfbda3826f3891c2acbff3d6 (patch) | |
tree | d8f326747a4d6af34d0b1f87e3e63445e9705ed4 /sys/lib | |
parent | b1710f18c81eeb4883829ff431968bdcb9f9f74a (diff) |
Put return type on its own line like it belong and use ANSI function header.
Diffstat (limited to 'sys/lib')
-rw-r--r-- | sys/lib/libkern/strlcpy.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/lib/libkern/strlcpy.c b/sys/lib/libkern/strlcpy.c index 598220c7c98..1f0d117c5d4 100644 --- a/sys/lib/libkern/strlcpy.c +++ b/sys/lib/libkern/strlcpy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: strlcpy.c,v 1.1 2000/12/18 18:40:45 provos Exp $ */ +/* $OpenBSD: strlcpy.c,v 1.2 2003/03/14 14:34:24 millert Exp $ */ /* * Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com> @@ -28,7 +28,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: strlcpy.c,v 1.1 2000/12/18 18:40:45 provos Exp $"; +static char *rcsid = "$OpenBSD: strlcpy.c,v 1.2 2003/03/14 14:34:24 millert Exp $"; #endif /* LIBC_SCCS and not lint */ #if !defined(_KERNEL) && !defined(_STANDALONE) @@ -43,10 +43,8 @@ static char *rcsid = "$OpenBSD: strlcpy.c,v 1.1 2000/12/18 18:40:45 provos Exp $ * will be copied. Always NUL terminates (unless siz == 0). * Returns strlen(src); if retval >= siz, truncation occurred. */ -size_t strlcpy(dst, src, siz) - char *dst; - const char *src; - size_t siz; +size_t +strlcpy(char *dst, const char *src, size_t siz) { register char *d = dst; register const char *s = src; |