summaryrefslogtreecommitdiff
path: root/src/lib/ecore_con/dns.c
diff options
context:
space:
mode:
authorMike McCormack <mikem@atratus.org>2013-01-02 20:36:40 +0000
committerMike McCormack <mikem@ring3k.org>2013-01-02 20:36:40 +0000
commit81cf390f1704b354e28980291be971be8e02d832 (patch)
tree828f447577928c55cf91ffb8cc229cf8628a068e /src/lib/ecore_con/dns.c
parent8d1f3f78510f74b46c88aa1732cbcf5eff27d154 (diff)
efl: Fix shadow warnings
Signed-off-by: Mike McCormack <mikem@atratus.org> SVN revision: 82013
Diffstat (limited to 'src/lib/ecore_con/dns.c')
-rw-r--r--src/lib/ecore_con/dns.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/lib/ecore_con/dns.c b/src/lib/ecore_con/dns.c
index b50d306..ab36b4b 100644
--- a/src/lib/ecore_con/dns.c
+++ b/src/lib/ecore_con/dns.c
@@ -949,6 +949,7 @@ void dns_p_dictadd(struct dns_packet *P, unsigned short dn) {
949int dns_p_push(struct dns_packet *P, enum dns_section section, const void *dn, size_t dnlen, enum dns_type type, enum dns_class class, unsigned ttl, const void *any) { 949int dns_p_push(struct dns_packet *P, enum dns_section section, const void *dn, size_t dnlen, enum dns_type type, enum dns_class class, unsigned ttl, const void *any) {
950 size_t end = P->end; 950 size_t end = P->end;
951 int error; 951 int error;
952 unsigned short count;
952 953
953 if ((error = dns_d_push(P, dn, dnlen))) 954 if ((error = dns_d_push(P, dn, dnlen)))
954 goto error; 955 goto error;
@@ -985,7 +986,8 @@ update:
985 if (!P->qd.base && (error = dns_p_study(P))) 986 if (!P->qd.base && (error = dns_p_study(P)))
986 goto error; 987 goto error;
987 988
988 dns_header(P)->qdcount = htons(ntohs(dns_header(P)->qdcount) + 1); 989 count = ntohs(dns_header(P)->qdcount) + 1;
990 dns_header(P)->qdcount = htons(count);
989 991
990 P->qd.end = P->end; 992 P->qd.end = P->end;
991 P->an.base = P->end; 993 P->an.base = P->end;
@@ -1003,7 +1005,8 @@ update:
1003 if (!P->an.base && (error = dns_p_study(P))) 1005 if (!P->an.base && (error = dns_p_study(P)))
1004 goto error; 1006 goto error;
1005 1007
1006 dns_header(P)->ancount = htons(ntohs(dns_header(P)->ancount) + 1); 1008 count = ntohs(dns_header(P)->ancount) + 1;
1009 dns_header(P)->ancount = htons(count);
1007 1010
1008 P->an.end = P->end; 1011 P->an.end = P->end;
1009 P->ns.base = P->end; 1012 P->ns.base = P->end;
@@ -1019,7 +1022,8 @@ update:
1019 if (!P->ns.base && (error = dns_p_study(P))) 1022 if (!P->ns.base && (error = dns_p_study(P)))
1020 goto error; 1023 goto error;
1021 1024
1022 dns_header(P)->nscount = htons(ntohs(dns_header(P)->nscount) + 1); 1025 count = ntohs(dns_header(P)->nscount) + 1;
1026 dns_header(P)->nscount = htons(count);
1023 1027
1024 P->ns.end = P->end; 1028 P->ns.end = P->end;
1025 P->ar.base = P->end; 1029 P->ar.base = P->end;
@@ -1030,7 +1034,8 @@ update:
1030 if (!P->ar.base && (error = dns_p_study(P))) 1034 if (!P->ar.base && (error = dns_p_study(P)))
1031 goto error; 1035 goto error;
1032 1036
1033 dns_header(P)->arcount = htons(ntohs(dns_header(P)->arcount) + 1); 1037 count = ntohs(dns_header(P)->arcount) + 1;
1038 dns_header(P)->arcount = ntohs(dns_header(P)->arcount) + 1;
1034 1039
1035 P->ar.end = P->end; 1040 P->ar.end = P->end;
1036 1041