if (qdcount) {
if (iquery) {
if ((n = dn_expand((u_char *)answer->buf,
- (u_char *)eom, (u_char *)cp, (u_char *)bp,
+ (u_char *)eom, (u_char *)cp, bp,
buflen)) < 0) {
h_errno = NO_RECOVERY;
return ((struct hostent *) NULL);
haveanswer = 0;
while (--ancount >= 0 && cp < eom) {
if ((n = dn_expand((u_char *)answer->buf, (u_char *)eom,
- (u_char *)cp, (u_char *)bp, buflen)) < 0)
+ (u_char *)cp, bp, buflen)) < 0)
break;
cp += n;
type = _getshort(cp);
}
if (iquery && type == T_PTR) {
if ((n = dn_expand((u_char *)answer->buf,
- (u_char *)eom, (u_char *)cp, (u_char *)bp,
+ (u_char *)eom, (u_char *)cp, bp,
buflen)) < 0)
break;
cp += n;
switch (lookups[i]) {
#ifdef YP
case 'y':
- hp = _yp_gethtbyaddr(addr, len, type);
+ hp = _yp_gethtbyaddr(addr);
break;
#endif
case 'b':
- n = res_query(qbuf, C_IN, T_PTR, (char *)&buf, sizeof(buf));
+ n = res_query(qbuf, C_IN, T_PTR, (u_char *)&buf, sizeof(buf));
if (n < 0) {
#ifdef DEBUG
if (_res.options & RES_DEBUG)
struct hostent *
_gethtbyname(name)
- char *name;
+ const char *name;
{
register struct hostent *p;
register char **cp;
}
struct hostent *
-_yp_gethtbyaddr(addr, len, type)
+_yp_gethtbyaddr(addr)
const char *addr;
- int len, type;
{
struct hostent *hp = (struct hostent *)NULL;
static char *__ypcurrent;