summaryrefslogtreecommitdiff
path: root/missing
diff options
context:
space:
mode:
authorguy <guy>2002-08-02 04:38:12 +0000
committerguy <guy>2002-08-02 04:38:12 +0000
commit4d98413d6c4f814e0280c0602ff2e4f58455d7a3 (patch)
treeead6660561cba8e95e9cf0d3efe483ee1fcbed78 /missing
parent3ece7fe0f6601c846a38d4098e438ef720ddd108 (diff)
downloadtcpdump-4d98413d6c4f814e0280c0602ff2e4f58455d7a3.tar.gz
Make the definitions of "strlcat()" and "strcpy()" prototype
definitions, to squelch warnings from some compilers.
Diffstat (limited to 'missing')
-rw-r--r--missing/strlcat.c7
-rw-r--r--missing/strlcpy.c7
2 files changed, 4 insertions, 10 deletions
diff --git a/missing/strlcat.c b/missing/strlcat.c
index ced0073c..89878df0 100644
--- a/missing/strlcat.c
+++ b/missing/strlcat.c
@@ -30,7 +30,7 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /tcpdump/master/tcpdump/missing/strlcat.c,v 1.2 2002-08-01 08:53:40 risso Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/tcpdump/missing/strlcat.c,v 1.3 2002-08-02 04:38:12 guy Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
@@ -48,10 +48,7 @@ static const char rcsid[] =
* Returns strlen(src); 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;
diff --git a/missing/strlcpy.c b/missing/strlcpy.c
index db94c7d2..793605d1 100644
--- a/missing/strlcpy.c
+++ b/missing/strlcpy.c
@@ -30,7 +30,7 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /tcpdump/master/tcpdump/missing/strlcpy.c,v 1.2 2002-08-01 08:53:40 risso Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/tcpdump/missing/strlcpy.c,v 1.3 2002-08-02 04:38:13 guy Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
@@ -47,10 +47,7 @@ static const char rcsid[] =
* Returns strlen(src); if retval >= siz, truncation occurred.
*/
size_t
-strlcpy(dst, src, siz)
- char *dst;
- const char *src;
- size_t siz;
+strlcpy(char *dst, const char *src, size_t siz)
{
register char *d = dst;
register const char *s = src;