FACT++  1.0
SERVER* find_server ( char *  node,
int  pid 
)

Definition at line 2291 of file did.c.

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

Referenced by update_servers().

2292 {
2293  SERVER *servp;
2294  DNS_SERVER_INFO *ptr;
2295 
2296  servp = Server_head;
2297  while( (servp = (SERVER *)sll_get_next((SLL *)servp)) )
2298  {
2299  ptr = &servp->server;
2300  if((ptr->pid == pid) && (!strcmp(ptr->node,node)))
2301  {
2302  return(servp);
2303  }
2304  }
2305  return ((SERVER *)0);
2306 }
Definition: dns.c:26
Definition: did.h:42
char node[MAX_NODE_NAME]
Definition: dim.h:338
SERVER * Server_head
Definition: did.h:55
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: