]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-http.c
CI: Add warning exemptions for Sun C (suncc-5.14) on Solaris 10
[tcpdump] / print-http.c
index c8b6be127bc462c6b19c4a99329be630bd808757..cdb1fd71a21e18d463a8fe86d413afcd83c46f1f 100644 (file)
 
 /* \summary: Hypertext Transfer Protocol (HTTP) printer */
 
-#ifdef HAVE_CONFIG_H
 #include <config.h>
-#endif
 
 #include "netdissect-stdinc.h"
 
-#include <stdio.h>
-#include <stdlib.h>
-
 #include "netdissect.h"
-#include "extract.h"
 
 /*
  * Includes WebDAV requests.
@@ -74,5 +68,5 @@ void
 http_print(netdissect_options *ndo, const u_char *pptr, u_int len)
 {
        ndo->ndo_protocol = "http";
-       txtproto_print(ndo, pptr, len, "http", httpcmds, RESP_CODE_SECOND_TOKEN);
+       txtproto_print(ndo, pptr, len, httpcmds, RESP_CODE_SECOND_TOKEN);
 }