aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2011-01-11 11:41:03 +0000
committerAnders Broman <anders.broman@ericsson.com>2011-01-11 11:41:03 +0000
commitb2992b2310da1adefc46e0a9f6e43454ebd882f7 (patch)
treef3e50c063e04c563e79cfa8ac09fb4ddab6bfd5a
parent1ea96b1e302c57bb4deb0aad1e0482ba9e482b14 (diff)
ldap.cnf:782: warning: ISO C90 forbids mixed declarations and code
svn path=/trunk/; revision=35476
-rw-r--r--asn1/ldap/ldap.cnf2
-rw-r--r--epan/dissectors/packet-ldap.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/asn1/ldap/ldap.cnf b/asn1/ldap/ldap.cnf
index 419ff03293..7d7e45788c 100644
--- a/asn1/ldap/ldap.cnf
+++ b/asn1/ldap/ldap.cnf
@@ -767,6 +767,7 @@ offset = dissect_ber_boolean(implicit_tag, actx, tree, tvb, offset, hf_index, &v
gint32 tag;
guint32 len;
gint32 val;
+ header_field_info *hfinfo;
int otheroffset = offset;
if(!implicit_tag){
@@ -779,7 +780,6 @@ offset = dissect_ber_boolean(implicit_tag, actx, tree, tvb, offset, hf_index, &v
offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, -1, &val);
- header_field_info *hfinfo;
hfinfo = proto_registrar_get_nth(hf_index);
if (val >0) {
diff --git a/epan/dissectors/packet-ldap.c b/epan/dissectors/packet-ldap.c
index b5802e8070..18429316bb 100644
--- a/epan/dissectors/packet-ldap.c
+++ b/epan/dissectors/packet-ldap.c
@@ -3280,6 +3280,7 @@ dissect_ldap_DirSyncFlags(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offs
gint32 tag;
guint32 len;
gint32 val;
+ header_field_info *hfinfo;
int otheroffset = offset;
if(!implicit_tag){
@@ -3292,7 +3293,6 @@ dissect_ldap_DirSyncFlags(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offs
offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, -1, &val);
- header_field_info *hfinfo;
hfinfo = proto_registrar_get_nth(hf_index);
if (val >0) {