X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/585ac3db0663f474fd3417ea91953b58022cc9d9..10ac80fdecfa9b9b7d259d8f50d0b72ef1b18f12:/missing/strlcpy.c diff --git a/missing/strlcpy.c b/missing/strlcpy.c index 5f3f31e9..2dc51b96 100644 --- a/missing/strlcpy.c +++ b/missing/strlcpy.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" + /* * Copy src to string dst of size siz. At most siz-1 characters * will be copied. Always NUL terminates (unless siz == 0). @@ -44,9 +46,9 @@ size_t strlcpy(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; /* Copy as many bytes as will fit */ if (n != 0 && --n != 0) {