[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r8591: Use ANSI-style definition syntax in strlcat.c and strlcpy.c (in tor/trunk: . src/common)
- To: or-cvs@xxxxxxxxxxxxx
- Subject: [or-cvs] r8591: Use ANSI-style definition syntax in strlcat.c and strlcpy.c (in tor/trunk: . src/common)
- From: nickm@xxxxxxxx
- Date: Tue, 3 Oct 2006 15:00:08 -0400 (EDT)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Tue, 03 Oct 2006 15:00:17 -0400
- Reply-to: or-talk@xxxxxxxxxxxxx
- Sender: owner-or-cvs@xxxxxxxxxxxxx
Author: nickm
Date: 2006-10-03 15:00:07 -0400 (Tue, 03 Oct 2006)
New Revision: 8591
Modified:
tor/trunk/
tor/trunk/src/common/strlcat.c
tor/trunk/src/common/strlcpy.c
Log:
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
Property changes on: tor/trunk
___________________________________________________________________
svk:merge ticket from /tor/branches/verbose-nicknames [r8860] on 96637b51-b116-0410-a10e-9941ebb49b64
Modified: tor/trunk/src/common/strlcat.c
===================================================================
--- tor/trunk/src/common/strlcat.c 2006-10-03 19:00:01 UTC (rev 8590)
+++ tor/trunk/src/common/strlcat.c 2006-10-03 19:00:07 UTC (rev 8591)
@@ -42,10 +42,7 @@
* If retval >= siz, truncation occurred.
*/
size_t
-strlcat(dst, src, siz)
- char *dst;
- const char *src;
- size_t siz;
+strlcat(char *dst, const char *src, size_t siz)
{
register char *d = dst;
register const char *s = src;
Modified: tor/trunk/src/common/strlcpy.c
===================================================================
--- tor/trunk/src/common/strlcpy.c 2006-10-03 19:00:01 UTC (rev 8590)
+++ tor/trunk/src/common/strlcpy.c 2006-10-03 19:00:07 UTC (rev 8591)
@@ -40,10 +40,7 @@
* 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;