]> The Tcpdump Group git mirrors - tcpdump/blobdiff - missing/getservent.c
Do not substitute strdup().
[tcpdump] / missing / getservent.c
index 48b7465ca2be243fd8e1845f9f719aa2177e9b2b..39cee068a69bb6d1e00a72d2d9b6a0c3adde57b7 100644 (file)
@@ -35,7 +35,7 @@
  */
 
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include <config.h>
 #endif
 
 #include <netdissect-stdinc.h>
@@ -96,7 +96,7 @@ struct servent *
 getservent(void)
 {
     char *p;
-    register char *cp, **q;
+    char *cp, **q;
 
     if (servf == NULL && (servf = fopen(etc_path(__PATH_SERVICES), "r")) == NULL)
         return (NULL);