bytestring_to_str() now returns a const char *; assign its result to a

const char *, not a char *.

svn path=/trunk/; revision=46769
This commit is contained in:
Guy Harris 2012-12-26 10:54:03 +00:00
parent 544efd26a6
commit 1cd57ad3c5
2 changed files with 2 additions and 2 deletions

View File

@ -209,7 +209,7 @@ gint pdu_type=-1;
msg = "SNMP Authentication OK";
severity = PI_CHAT;
} else {
gchar* calc_auth_str = bytestring_to_str(calc_auth,calc_auth_len,' ');
const gchar* calc_auth_str = bytestring_to_str(calc_auth,calc_auth_len,' ');
proto_item_append_text(authen_item, " calculated = %s", calc_auth_str);
msg = "SNMP Authentication Error";
severity = PI_WARN;

View File

@ -2482,7 +2482,7 @@ dissect_snmp_SNMPv3Message(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int off
msg = "SNMP Authentication OK";
severity = PI_CHAT;
} else {
gchar* calc_auth_str = bytestring_to_str(calc_auth,calc_auth_len,' ');
const gchar* calc_auth_str = bytestring_to_str(calc_auth,calc_auth_len,' ');
proto_item_append_text(authen_item, " calculated = %s", calc_auth_str);
msg = "SNMP Authentication Error";
severity = PI_WARN;