Branch: Tag:

2011-09-21

2011-09-21 21:33:47 by Martin Stjernholm <mast@lysator.liu.se>

Avoid a compilation warning in offline mode.

Rev: server/etc/modules/Roxen.pmod:1.321

1:   // This is a roxen pike module. Copyright © 1999 - 2009, Roxen IS.   // - // $Id: Roxen.pmod,v 1.320 2011/09/21 21:32:39 mast Exp $ + // $Id: Roxen.pmod,v 1.321 2011/09/21 21:33:47 mast Exp $      #include <roxen.h>   #include <config.h>
5066:    // The host part of the URL is a glob.    // Lets find some suitable hostnames and IPs to match it against.    -  array hosts=({ gethostname() }), dns; +  array hosts=({ gethostname() });      #ifndef NO_DNS -  +  array dns;    catch(dns=roxen->gethostbyname(hosts[0]));    if(dns && sizeof(dns))    hosts+=dns[2]+dns[1];