X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/3824a6c0417a551961d1a1bf4f94f10eff736afc..c1f81909501d149f47a9afdeeeeb04be1a9f8b13:/missing/strlcat.c diff --git a/missing/strlcat.c b/missing/strlcat.c index 1497883e..f41207be 100644 --- a/missing/strlcat.c +++ b/missing/strlcat.c @@ -28,23 +28,16 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ - -#ifdef HAVE_CONFIG_H +#ifdef HAVE_CONFIG_H #include #endif -#include - - -#include "interface.h" - -#ifndef lint -static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/tcpdump/missing/strlcat.c,v 1.4 2003-11-15 00:39:48 guy Exp $ (LBL)"; -#endif +#include #include +#include "netdissect.h" + /* * Appends src to string dst of size siz (unlike strncat, siz is the * full size of dst, not space left). At most siz-1 characters @@ -54,9 +47,9 @@ static const char rcsid[] _U_ = size_t strlcat(char *dst, const char *src, size_t siz) { - register char *d = dst; - register const char *s = src; - register size_t n = siz; + char *d = dst; + const char *s = src; + size_t n = siz; size_t dlen; /* Find the end of dst and adjust bytes left but don't go past end */