FACT++  1.0
int dis_hash_service_remove ( SERVICE servp)

Definition at line 3283 of file dis.c.

References dll_remove(), HashFunction(), MAX_HASH_ENTRIES, and serv::name.

Referenced by dis_remove_service().

3284 {
3285  int index;
3286  index = HashFunction(servp->name, MAX_HASH_ENTRIES);
3287  if(!Service_hash_table[index])
3288  {
3289  return(0);
3290  }
3291  dll_remove( (DLL *) servp );
3292  return(1);
3293 }
#define MAX_HASH_ENTRIES
Definition: dis.c:3231
char name[MAX_NAME]
Definition: dis.c:72
void dll_remove(DLL *item)
Definition: dll.c:100
Definition: dim.h:530
static SERVICE * Service_hash_table[MAX_HASH_ENTRIES]
Definition: dis.c:3233
int HashFunction(char *name, int max)
Definition: hash.c:22

+ Here is the call graph for this function:

+ Here is the caller graph for this function: