X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/513f782ae18791f0c925b9235da749b38159b607..c2a9094394193f1de9c968a1fc490e5a1f2a9a3d:/print-openflow-1.0.c diff --git a/print-openflow-1.0.c b/print-openflow-1.0.c index d8242875..9004f927 100644 --- a/print-openflow-1.0.c +++ b/print-openflow-1.0.c @@ -59,7 +59,7 @@ /* \summary: OpenFlow protocol version 1.0 printer */ #ifdef HAVE_CONFIG_H -#include "config.h" +#include #endif #include "netdissect-stdinc.h" @@ -703,7 +703,7 @@ vlan_str(const uint16_t vid) if (vid == OFP_VLAN_NONE) return "NONE"; fmt = (vid > 0 && vid < 0x0fff) ? "%u" : "%u (bogus)"; - snprintf(buf, sizeof(buf), fmt, vid); + nd_snprintf(buf, sizeof(buf), fmt, vid); return buf; } @@ -711,7 +711,7 @@ static const char * pcp_str(const uint8_t pcp) { static char buf[sizeof("255 (bogus)")]; - snprintf(buf, sizeof(buf), pcp <= 7 ? "%u" : "%u (bogus)", pcp); + nd_snprintf(buf, sizeof(buf), pcp <= 7 ? "%u" : "%u (bogus)", pcp); return buf; }