Return to res_data.c CVS log | Up to [cvs.NetBSD.org] / src / lib / libc / resolv |
Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. |
version 1.11.8.1, 2009/05/13 19:18:26 | version 1.12, 2009/04/12 17:07:17 | ||
---|---|---|---|
|
|
||
res_randomid(void) { | res_randomid(void) { | ||
if ((_nres.options & RES_INIT) == 0U && res_init() == -1) { | if ((_nres.options & RES_INIT) == 0U && res_init() == -1) { | ||
RES_SET_H_ERRNO(&_res, NETDB_INTERNAL); | RES_SET_H_ERRNO(&_res, NETDB_INTERNAL); | ||
return (u_int)-1; | return (-1); | ||
} | } | ||
return (res_nrandomid(&_nres)); | return (res_nrandomid(&_nres)); |