From 6f1e09e3665e3b4fbfbda3826f3891c2acbff3d6 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Fri, 14 Mar 2003 14:34:25 +0000 Subject: Put return type on its own line like it belong and use ANSI function header. --- sys/lib/libkern/strlcpy.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'sys/lib/libkern/strlcpy.c') 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 @@ -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; -- cgit v1.2.3