masqmail

changeset 201:138e66e1a61f

removed dns_getname() which was already commented seems as if one can use dns_getip() or dns_getmx() instead without problem their code is almost identical to the one of dns_getname() anyway
author meillo@marmaro.de
date Fri, 16 Jul 2010 13:08:29 +0200
parents 116b0269c934
children 5cecc214afc9
files src/lookup.c
diffstat 1 files changed, 0 insertions(+), 21 deletions(-) [+]
line diff
     1.1 --- a/src/lookup.c	Fri Jul 16 12:53:07 2010 +0200
     1.2 +++ b/src/lookup.c	Fri Jul 16 13:08:29 2010 +0200
     1.3 @@ -172,27 +172,6 @@
     1.4  	return 0;
     1.5  }
     1.6  
     1.7 -/*
     1.8 -static int
     1.9 -dns_getname(int type)
    1.10 -{
    1.11 -  int ret;
    1.12 -
    1.13 -  if((ret = dns_next())) return ret;
    1.14 -
    1.15 -  if (rr_type == type){
    1.16 -    if (dn_expand(response.buf, resp_end, resp_pos, name, MAX_DNSNAME) < 0)
    1.17 -      return -1;
    1.18 -
    1.19 -    resp_pos += rr_dlen;
    1.20 -
    1.21 -    return 1;
    1.22 -  }
    1.23 -  resp_pos += rr_dlen;
    1.24 -  return 0;
    1.25 -}
    1.26 -*/
    1.27 -
    1.28  int
    1.29  dns_look_ip(gchar * domain, guint32 * ip)
    1.30  {