/********************************************************************/
#include "bag.h"
+#include <stdlib.h>
#define HASH_TABLE_SIZE 256
#define hash(x) (((x)&0xff)^(((x)>>8)&0xff)^(((x)>>16)&0xff)^(((x)>>24)&0xff))
}
}
-void
-removefromlist (Hashentry ** p, long first, long second)
+static void
+removefromlist (Hashentry ** p, long first)
{
Hashentry *q;
if (BAG_getsecond (first, &second) == NO_SUCH_PAIR)
return NO_SUCH_PAIR;
- removefromlist (&lookupbyfirst[hash (first)], first, second);
- removefromlist (&lookupbysecond[hash (second)], first, second);
+ removefromlist (&lookupbyfirst[hash (first)], first);
+ removefromlist (&lookupbysecond[hash (second)], first);
return NO_ERROR;
}
if (BAG_getfirst (&first, second) == NO_SUCH_PAIR)
return NO_SUCH_PAIR;
- removefromlist (&lookupbyfirst[hash (first)], first, second);
- removefromlist (&lookupbysecond[hash (second)], first, second);
+ removefromlist (&lookupbyfirst[hash (first)], first);
+ removefromlist (&lookupbysecond[hash (second)], first);
return NO_ERROR;
}