0a1,2
> #ifndef _HASH_H
> #define _HASH_H
2c4,5
< extern LIST_PTR		*hash_insert(LIST_PTR *l, void *data, int index, int RandValue);
---
> #include <stdio.h>
> #include <stdlib.h>
3a7,35
> #include "list.h"
> 
> typedef struct {
> 	int		id;
> 	LIST_PTR	*candidates;
> } HASHREC;
> 
> /*extern*/ LIST_PTR* hash_insert(LIST_PTR *l, void *data, int index, int RandValue);
> 
> extern inline LIST_PTR* hash_insert(LIST_PTR *l, void *data, int index, int RandValue)
> {
> 	HASHREC	*h;
> 
> 	h = (HASHREC *)list_find(l, index);
> 	if (h == NULL) {
> 		h = (HASHREC *)malloc(sizeof(HASHREC));
> 		if (h == NULL) {
> 			printf("\n\nERROR: hash_insert(): Could not insert item into hashed list\n\n");
> 			exit(-2);
> 		}
> 		h->id = index;
> 		h->candidates = (LIST_PTR *)NULL;
> 		l = (LIST_PTR *)list_insert(l, h, index);
> 	}
> 	h->candidates = (LIST_PTR *)list_insert(h->candidates, data, RandValue);
> 	return(l);
> }
> 
> #endif
