aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2012-12-26 10:54:03 +0000
committerGuy Harris <guy@alum.mit.edu>2012-12-26 10:54:03 +0000
commit1cd57ad3c590a0c797c0806677e6a9b15d54319f (patch)
tree8bb8b3e815a485c8dcefc5c3118c03852574c9a7
parent544efd26a64355227031f50f3b6b65f5cf2fc3ce (diff)
bytestring_to_str() now returns a const char *; assign its result to a
const char *, not a char *. svn path=/trunk/; revision=46769
-rw-r--r--asn1/snmp/snmp.cnf2
-rw-r--r--epan/dissectors/packet-snmp.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/asn1/snmp/snmp.cnf b/asn1/snmp/snmp.cnf
index 6049c1b91e..4db5c72982 100644
--- a/asn1/snmp/snmp.cnf
+++ b/asn1/snmp/snmp.cnf
@@ -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;
diff --git a/epan/dissectors/packet-snmp.c b/epan/dissectors/packet-snmp.c
index 8f314d0c5a..ece8f9f00c 100644
--- a/epan/dissectors/packet-snmp.c
+++ b/epan/dissectors/packet-snmp.c
@@ -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;