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

Definition at line 2263 of file didMarkus.c.

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

Referenced by update_servers().

2264 {
2265  SERVER *servp;
2266  DNS_SERVER_INFO *ptr;
2267 
2268  servp = Server_head;
2269  while( (servp = (SERVER *)sll_get_next((SLL *)servp)) )
2270  {
2271  ptr = &servp->server;
2272  if((ptr->pid == pid) && (!strcmp(ptr->node,node)))
2273  {
2274  return(servp);
2275  }
2276  }
2277  return ((SERVER *)0);
2278 }
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: