]> The Tcpdump Group git mirrors - tcpdump/blobdiff - missing/getservent.c
CMake: Fix the comment about versions. [skip ci]
[tcpdump] / missing / getservent.c
index 48b7465ca2be243fd8e1845f9f719aa2177e9b2b..4da24800fd7d8353ca108a50afe7afdf63134aa3 100644 (file)
@@ -34,9 +34,7 @@
  * SUCH DAMAGE.
  */
 
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
+#include <config.h>
 
 #include <netdissect-stdinc.h>
 #include <getservent.h>
@@ -96,7 +94,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);