diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-10-03 19:00:07 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-10-03 19:00:07 +0000 |
commit | 29fa9eb216d74f1ca31a6f08ffc36d51726c1a50 (patch) | |
tree | 6b431391355f8f0df6ae96f0e1a932770940949e /src/common/strlcpy.c | |
parent | f6774863b053ee8664d4d56fb4f51620e0d7ccef (diff) | |
download | tor-29fa9eb216d74f1ca31a6f08ffc36d51726c1a50.tar.gz tor-29fa9eb216d74f1ca31a6f08ffc36d51726c1a50.zip |
r8860@totoro: nickm | 2006-10-03 14:48:33 -0400
Use ANSI-style definition syntax in strlcat.c and strlcpy.c so that gcc stops barfing with -Wold-style-definition
svn:r8591
Diffstat (limited to 'src/common/strlcpy.c')
-rw-r--r-- | src/common/strlcpy.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/common/strlcpy.c b/src/common/strlcpy.c index 2448ec06c8..142135aa3b 100644 --- a/src/common/strlcpy.c +++ b/src/common/strlcpy.c @@ -40,10 +40,7 @@ static char *rcsid = "$OpenBSD: strlcpy.c,v 1.2 1998/11/06 04:33:16 wvdputte 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; |