diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-02 17:06:03 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-02 17:06:03 +0000 |
commit | a5c99b8dc6164ca3a9abed1c843627c1e817caaa (patch) | |
tree | 79c742f394146b665d76631ae47890e6e86e2b11 /src | |
parent | 5a65d2f58804f4067a2f5d7ad27c1cb1645d911a (diff) |
Tidyup var names. If i ever meet this person who called all the firedns vars 'l' and 'c' and 'r' im going to beat them with Om's fish.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4640 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/dns.cpp | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/src/dns.cpp b/src/dns.cpp index 876044a26..69df48cc6 100644 --- a/src/dns.cpp +++ b/src/dns.cpp @@ -316,18 +316,17 @@ int DNS::dns_getip4(const char *name) { /* build, add and send A query; retrieve result with dns_getresult() */ s_header h; - s_connection *s; - int l; + s_connection* req; int id; - l = dns_build_query_payload(name,DNS_QRY_A,1,(unsigned char *)&h.payload); - if (l == -1) + int length = dns_build_query_payload(name,DNS_QRY_A,1,(unsigned char*)&h.payload); + if (length == -1) return -1; - s = dns_add_query(&h, id); - if (s == NULL) + req = dns_add_query(&h, id); + if (req == NULL) return -1; - if (s->send_requests(&h,l,DNS_QRY_A) == -1) + if (req->send_requests(&h,length,DNS_QRY_A) == -1) return -1; return id; @@ -341,22 +340,21 @@ int DNS::dns_getname4(const insp_inaddr *ip) log(DEBUG,"DNS::dns_getname4"); char query[512]; s_header h; - s_connection * s; + s_connection* req; unsigned char *c; - int l; int id; c = (unsigned char *)&ip->s_addr; sprintf(query,"%d.%d.%d.%d.in-addr.arpa",c[3],c[2],c[1],c[0]); - l = dns_build_query_payload(query,DNS_QRY_PTR,1,(unsigned char *)&h.payload); - if (l == -1) + int length = dns_build_query_payload(query,DNS_QRY_PTR,1,(unsigned char*)&h.payload); + if (length == -1) return -1; - s = dns_add_query(&h, id); - if (s == NULL) + req = dns_add_query(&h, id); + if (req == NULL) return -1; - if (s->send_requests(&h,l,DNS_QRY_PTR) == -1) + if (req->send_requests(&h,length,DNS_QRY_PTR) == -1) return -1; return id; |