Branch: Tag:

2008-01-31

2008-01-31 22:45:09 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fixed a few more warnings on NT that resulted from the previous commit.

Rev: lib/modules/Protocols.pmod/DNS.pmod:1.94

1: - // $Id: DNS.pmod,v 1.93 2008/01/31 13:08:59 grubba Exp $ + // $Id: DNS.pmod,v 1.94 2008/01/31 22:45:09 grubba Exp $   // Not yet finished -- Fredrik Hubinette      //! Domain Name System
600:   //! Synchronous DNS client.   class client   { -  +     inherit protocol;    -  static private int is_ip(string ip) -  { -  // FIXME: Doesn't work with IPv6 -  return (replace(ip, "0123456789."/1, allocate(11,"")) == ""); -  } -  +    #ifdef __NT__    array(string) get_tcpip_param(string val, void|string fallbackvalue)    {
640: Inside #if defined(__NT__)
  #endif    return sizeof(res) ? res : ({ fallbackvalue });    } - #endif +     -  + #else /* !__NT__ */ +     static private mapping(string:string) etc_hosts;    -  +  static private int is_ip(string ip) +  { +  // FIXME: Doesn't work with IPv6 +  return (replace(ip, "0123456789."/1, allocate(11,"")) == ""); +  } +     static private string read_etc_file(string fname)    {    array(string) paths;
670:    return res;    }    - #ifndef __NT__ +     static private string match_etc_hosts(string host)    {    if (!etc_hosts) {