From: adash Date: Fri, 2 Mar 2007 22:39:43 +0000 (+0000) Subject: delete void* pointers X-Git-Tag: preEdgeChange~683 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=94fc482ff6c3798a11809ed6b2eb565687da7ad5;p=IRC.git delete void* pointers --- 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 */