Lines Matching refs:hp
79 HostInfo *hp; in find_host() local
88 for (i = 0, hp = status_info->hosts; i < status_info->noOfHosts; i++, hp++) in find_host()
90 if (!strncasecmp(hostname, hp->hostname, SM_MAXSTRLEN)) in find_host()
92 result = hp; in find_host()
95 if (hp->hostname[0] != '\0' && in find_host()
96 getaddrinfo(hp->hostname, NULL, NULL, &ai2) != 0) in find_host()
109 result = hp; in find_host()
121 if (!spare_slot && !hp->monList && !hp->notifyReqd) in find_host()
122 spare_slot = hp; in find_host()
305 HostInfo *hp; in notify_hosts() local
309 for (i = status_info->noOfHosts, hp = status_info->hosts; i ; i--, hp++) in notify_hosts()
311 if (hp->notifyReqd) in notify_hosts()
347 for (i = status_info->noOfHosts, hp = status_info->hosts; i ; i--, hp++) in notify_hosts()
349 if (hp->notifyReqd) in notify_hosts()
351 if (notify_one_host(hp->hostname, attempts == 0)) in notify_hosts()
353 hp->notifyReqd = FALSE; in notify_hosts()