for (i = 0; i < result->objects.objects_len; i++)
for (i = 0; i < result->objects.objects_len; ++i)
_nss_nisplus_parse_hostent (nis_result *result, int af, struct hostent *host,			    char *buffer, size_t buflen, int *errnop){  unsigned int i;  char *first_unused = buffer;  size_t room_left = buflen;  char *data, *p, *line;  if (result == NULL)    return 0;  if ((result->status != NIS_SUCCESS && result->status != NIS_S_SUCCESS) ||      __type_of (result->objects.objects_val) != NIS_ENTRY_OBJ ||      strcmp(result->objects.objects_val[0].EN_data.en_type,	     "hosts_tbl") != 0 ||      result->objects.objects_val[0].EN_data.en_cols.en_cols_len < 4)    return 0;  if (room_left < NISENTRYLEN (0, 2, result) + 1)    {    no_more_room:      *errnop = ERANGE;      return -1;    }  data = first_unused;  if (inet_pton (af, NISENTRYVAL (0, 2, result), data) < 1)    /* Illegal address: ignore line.  */    return 0;  host->h_addrtype = af;  if (af == AF_INET6)    host->h_length = IN6ADDRSZ;  else    {      if (_res.options & RES_USE_INET6)	{	  map_v4v6_address (data, data);	  host->h_addrtype = AF_INET6;	  host->h_length = IN6ADDRSZ;	}      else	{	  host->h_addrtype = AF_INET;	  host->h_length = INADDRSZ;	}    }  first_unused+=host->h_length;  room_left-=host->h_length;  if (NISENTRYLEN (0, 0, result) + 1 > room_left)    goto no_more_room;  p = __stpncpy (first_unused, NISENTRYVAL (0, 0, result),		 NISENTRYLEN (0, 0, result));  *p = '\0';  room_left -= (NISENTRYLEN (0, 0, result) + 1);  host->h_name = first_unused;  first_unused += NISENTRYLEN (0, 0, result) +1;  p = first_unused;  line = p;  for (i = 0; i < result->objects.objects_len; i++)    {      if (strcmp (NISENTRYVAL (i, 1, result), host->h_name) != 0)	{	  if (NISENTRYLEN (i, 1, result) + 2 > room_left)	    goto no_more_room;	  *p++ = ' ';	  p = __stpncpy (p, NISENTRYVAL (i, 1, result),			 NISENTRYLEN (i, 1, result));	  *p = '\0';	  room_left -= (NISENTRYLEN (i, 1, result) + 1);	}    }  ++p;  first_unused = p;  /* Adjust the pointer so it is aligned for     storing pointers.  */  first_unused += __alignof__ (char *) - 1;  first_unused -= ((first_unused - (char *) 0) % __alignof__ (char *));  host->h_addr_list = (char **) first_unused;  if (room_left < 2 * sizeof (char *))    goto no_more_room;  room_left -= (2 * sizeof (char *));  host->h_addr_list[0] = data;  host->h_addr_list[1] = NULL;  host->h_aliases = &host->h_addr_list[2];  host->h_aliases[0] = NULL;  i = 0;  while (*line != '\0')    {      /* Skip leading blanks.  */      while (isspace (*line))	line++;      if (*line == '\0')	break;      if (room_left < sizeof (char *))	goto no_more_room;      room_left -= sizeof (char *);      host->h_aliases[i] = line;      while (*line != '\0' && *line != ' ')	++line;      if (*line == ' ')	{	  *line = '\0';	  ++line;	  ++i;	}      else	host->h_aliases[i+1] = NULL;    }  return 1;}