]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-wb.c
doc: Actualize README.solaris.md. [skip ci]
[tcpdump] / print-wb.c
index 184809cb9412dc6c985a966b60d0623878cdbbf4..08113f35bd3f5b58a78702d3de60a368c0452f05 100644 (file)
@@ -21,9 +21,7 @@
 
 /* \summary: White Board printer */
 
-#ifdef HAVE_CONFIG_H
 #include <config.h>
-#endif
 
 #include "netdissect-stdinc.h"
 
@@ -73,10 +71,6 @@ struct pkt_hdr {
 #define PT_PREP         7       /* page vector reply */
 
 #if 0
-#ifdef PF_USER
-#undef PF_USER                 /* {Digital,Tru64} UNIX define this, alas */
-#endif
-
 /* flags */
 #define PF_USER                0x01    /* hint that packet has interactive data */
 #define PF_VIS         0x02    /* only visible ops wanted */
@@ -232,7 +226,7 @@ wb_id(netdissect_options *ndo,
                c = ',';
        }
        ND_PRINT("> \"");
-       (void)nd_print(ndo, sitename, sitename + len);
+       nd_printjnp(ndo, sitename, len);
        ND_PRINT("\"");
        return (0);
 }