From 94fc482ff6c3798a11809ed6b2eb565687da7ad5 Mon Sep 17 00:00:00 2001 From: adash Date: Fri, 2 Mar 2007 22:39:43 +0000 Subject: [PATCH] delete void* pointers --- Robust/src/Runtime/DSTM/interface/llookup.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Robust/src/Runtime/DSTM/interface/llookup.h b/Robust/src/Runtime/DSTM/interface/llookup.h index 9cc94529..c7b169c9 100644 --- a/Robust/src/Runtime/DSTM/interface/llookup.h +++ b/Robust/src/Runtime/DSTM/interface/llookup.h @@ -7,7 +7,6 @@ typedef struct hashlistnode { unsigned int oid; unsigned int mid; - void *val;// points to the object header structure struct hashlistnode *next; } lhashlistnode_t; @@ -21,8 +20,8 @@ typedef struct hashtable { /* Prototypes for hash*/ lhashtable_t *lhashCreate(unsigned int size, float loadfactor); unsigned int lhashFunction(lhashtable_t *table, unsigned int oid); -void lhashInsert(lhashtable_t *table, unsigned int oid, void *val, unsigned int mid); -void *lhashSearch(lhashtable_t *table, unsigned int oid); //returns val, NULL if not found +void lhashInsert(lhashtable_t *table, unsigned int oid, unsigned int mid); +int lhashSearch(lhashtable_t *table, unsigned int oid); //returns val, NULL if not found int lhashRemove(lhashtable_t *table, unsigned int oid); //returns -1 if not found void lhashResize(lhashtable_t *table, unsigned int newsize); /* end hash */ -- 2.34.1