X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/fe3253b9b8fad9e75f863157eba0780418182f17..3861a41bfa60b9a8bed2d5a11a2ba7a7b1bbed3d:/missing/strlcat.c diff --git a/missing/strlcat.c b/missing/strlcat.c index 41cb5b48..f41207be 100644 --- a/missing/strlcat.c +++ b/missing/strlcat.c @@ -28,14 +28,16 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H +#ifdef HAVE_CONFIG_H #include #endif -#include +#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 @@ -45,9 +47,9 @@ 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 */