]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Make pduid a u_short consistently.
authorGuy Harris <[email protected]>
Mon, 14 Sep 2015 22:04:12 +0000 (15:04 -0700)
committerGuy Harris <[email protected]>
Mon, 14 Sep 2015 22:04:12 +0000 (15:04 -0700)
print-snmp.c

index 8e7af5f53a7d5e05a2f74326010a22b52c6d0f1b..a2aa0742d201fb5b14a06d56b28d52eafa413105 100644 (file)
@@ -1054,7 +1054,7 @@ smi_print_variable(netdissect_options *ndo,
 
 static int
 smi_print_value(netdissect_options *ndo,
-                SmiNode *smiNode, u_char pduid, struct be *elem)
+                SmiNode *smiNode, u_short pduid, struct be *elem)
 {
        unsigned int i, oid[128], oidlen;
        SmiType *smiType;
@@ -1197,7 +1197,7 @@ smi_print_value(netdissect_options *ndo,
  */
 static void
 varbind_print(netdissect_options *ndo,
-              u_char pduid, const u_char *np, u_int length)
+              u_short pduid, const u_char *np, u_int length)
 {
        struct be elem;
        int count = 0, ind;