aboutsummaryrefslogtreecommitdiffstats
path: root/asn1
diff options
context:
space:
mode:
authorLuis Ontanon <luis.ontanon@gmail.com>2007-02-07 18:51:44 +0000
committerLuis Ontanon <luis.ontanon@gmail.com>2007-02-07 18:51:44 +0000
commitb08d8470e796def879639b184fad9b4b1d5936b0 (patch)
tree00acd5fbf8cf5bcb4c6d142f40240af01edd4eb5 /asn1
parent822594e0ce6ca1f0d47ae44fe1a9451052b39e7d (diff)
Oddly enough MSVC cannot compile this one.
svn path=/trunk/; revision=20738
Diffstat (limited to 'asn1')
-rw-r--r--asn1/snmp/packet-snmp-template.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/asn1/snmp/packet-snmp-template.c b/asn1/snmp/packet-snmp-template.c
index 1961f51b38..c31b535275 100644
--- a/asn1/snmp/packet-snmp-template.c
+++ b/asn1/snmp/packet-snmp-template.c
@@ -1972,18 +1972,18 @@ static void snmp_users_free_cb(void* p) {
static void snmp_users_update_cb(void* p _U_, char** err) {
snmp_ue_assoc_t* ue = p;
*err = NULL;
- GString* e = g_string_new("");
+ GString* es = g_string_new("");
- if (! ue->user.userName.len) g_string_append(e,"no userName, ");
- if (ue->user.authPassword.len < 8) g_string_sprintfa(e,"short authPassword (%d), ", ue->user.authPassword.len);
- if (ue->user.privPassword.len < 8) g_string_sprintfa(e,"short privPassword (%d), ", ue->user.privPassword.len);
+ if (! ue->user.userName.len) g_string_append(es,"no userName, ");
+ if (ue->user.authPassword.len < 8) g_string_sprintfa(es,"short authPassword (%d), ", ue->user.authPassword.len);
+ if (ue->user.privPassword.len < 8) g_string_sprintfa(es,"short privPassword (%d), ", ue->user.privPassword.len);
- if (e->len) {
- g_string_truncate(e,e->len-2);
- *err = ep_strdup(e->str);
+ if (es->len) {
+ g_string_truncate(es,es->len-2);
+ *err = ep_strdup(es->str);
}
- g_string_free(e,TRUE);
+ g_string_free(es,TRUE);
return;
}