FACT++  1.0
SERVER* find_server ( NODE nodep,
int  pid 
)

Definition at line 157 of file webDid.c.

References DNS_SERVER_INFO::pid, item::server, and sll_get_next().

Referenced by update_servers(), update_services(), and update_smi_objects().

158 {
159  SERVER *servp;
160  DNS_SERVER_INFO *ptr;
161 
162  servp = nodep->server_head;
163  while( (servp = (SERVER *)sll_get_next((SLL *)servp)) )
164  {
165  ptr = &servp->server;
166  if(ptr->pid == pid)
167  {
168  return(servp);
169  }
170  }
171  return ((SERVER *)0);
172 }
Definition: did.h:42
SLL * sll_get_next(SLL *item)
Definition: sll.c:50
Definition: dim.h:536
DNS_SERVER_INFO server
Definition: did.h:44

+ Here is the call graph for this function:

+ Here is the caller graph for this function: