ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Ethereal-users: [ethereal-users] simple patch to fix compile warning in .8.8

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Ron Flory <ron.flory@xxxxxxxxxx>
Date: Tue, 09 May 2000 10:50:51 -0500
hi-
 
 Different folks have different views about warnings, but here's a
simpel patch for the warning thats been around for a while at:

packet-snmp.c: In function `snmp_variable_decode':
packet-snmp.c:691: warning: field width is not type int (arg 6)


--- y/ethereal-0.8.8/packet-snmp.c      Mon May  8 22:15:24 2000
+++ x/ethereal-0.8.8/packet-snmp.c      Tue May  9 10:44:01 2000
@@ -687,7 +687,7 @@
                                    vb_display_string);
                        } else {
                                proto_tree_add_text(snmp_tree, offset,
length,
-                                   "Value: %s: %.*s", vb_type_name,
vb_length,
+                                   "Value: %s: %.*s", vb_type_name,
(int) vb_length,
                                    vb_octet_string);
                        }
 #endif

ron