aboutsummaryrefslogtreecommitdiffstats
path: root/strlcat.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2005-07-20 13:23:59 +0000
committerMatthias Andree <matthias.andree@gmx.de>2005-07-20 13:23:59 +0000
commit36da2cba5b16489e11d6a250d1133d60edfb78ce (patch)
treec232b28b15fdcc48573f60136741f613bbb23345 /strlcat.c
parent58528fcbcc6c71465dc3a6f0d11df856bbc7f88f (diff)
downloadfetchmail-36da2cba5b16489e11d6a250d1133d60edfb78ce.tar.gz
fetchmail-36da2cba5b16489e11d6a250d1133d60edfb78ce.tar.bz2
fetchmail-36da2cba5b16489e11d6a250d1133d60edfb78ce.zip
Clean up strlc??.c and hook them up.
svn path=/trunk/; revision=4139
Diffstat (limited to 'strlcat.c')
-rw-r--r--strlcat.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/strlcat.c b/strlcat.c
index db9d43c2..7b9673f9 100644
--- a/strlcat.c
+++ b/strlcat.c
@@ -17,28 +17,10 @@
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#if HAVE_NBTOOL_CONFIG_H
-#include "nbtool_config.h"
-#endif
-
-#include <sys/cdefs.h>
-#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: strlcat.c,v 1.16 2003/10/27 00:12:42 lukem Exp $");
-#endif /* LIBC_SCCS and not lint */
-
-#ifdef _LIBC
-#include "namespace.h"
-#endif
#include <sys/types.h>
#include <assert.h>
#include <string.h>
-#ifdef _LIBC
-# ifdef __weak_alias
-__weak_alias(strlcat, _strlcat)
-# endif
-#endif
-
#if !HAVE_STRLCAT
/*
* Appends src to string dst of size siz (unlike strncat, siz is the
@@ -48,11 +30,7 @@ __weak_alias(strlcat, _strlcat)
* If retval >= siz, truncation occurred.
*/
size_t
-#ifdef _LIBC
-_strlcat(dst, src, siz)
-#else
strlcat(dst, src, siz)
-#endif
char *dst;
const char *src;
size_t siz;
@@ -62,9 +40,6 @@ strlcat(dst, src, siz)
size_t n = siz;
size_t dlen;
- _DIAGASSERT(dst != NULL);
- _DIAGASSERT(src != NULL);
-
/* Find the end of dst and adjust bytes left but don't go past end */
while (n-- != 0 && *d != '\0')
d++;