]> The Tcpdump Group git mirrors - tcpdump/blobdiff - missing/strlcat.c
EAP: get rid of trailing commas in lists.
[tcpdump] / missing / strlcat.c
index 1497883ecfe9219d766dc7730ebb2ad4f79e568e..f41207be3630f78864a58d6cda07773d2811cba1 100644 (file)
  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-
-#ifdef HAVE_CONFIG_H 
+#ifdef HAVE_CONFIG_H
 #include <config.h>
 #endif
 
-#include <tcpdump-stdinc.h>
-
-
-#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 <netdissect-stdinc.h>
 
 #include <string.h>
 
+#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 */