Index: trunk/src/ht_subc.h =================================================================== --- trunk/src/ht_subc.h (revision 19472) +++ trunk/src/ht_subc.h (revision 19473) @@ -4,7 +4,7 @@ /* Hash: subcircuit -> pointer */ /* hash instance */ -typedef const pcb_subc_t *htscp_key_t; +typedef pcb_subc_t *htscp_key_t; typedef int htscp_value_t; #define HT(x) htscp_ ## x #include Index: trunk/src/obj_subc_hash.c =================================================================== --- trunk/src/obj_subc_hash.c (revision 19472) +++ trunk/src/obj_subc_hash.c (revision 19473) @@ -37,7 +37,7 @@ int pcb_subc_hash_ignore_uid = 0; -int pcb_subc_eq(const pcb_subc_t *sc1, const pcb_subc_t *sc2) +int pcb_subc_eq(pcb_subc_t *sc1, pcb_subc_t *sc2) { pcb_host_trans_t tr1, tr2; int lid; @@ -110,7 +110,7 @@ return 1; } -unsigned int pcb_subc_hash(const pcb_subc_t *sc) +unsigned int pcb_subc_hash(pcb_subc_t *sc) { unsigned int hash; int lid; Index: trunk/src/obj_subc_list.h =================================================================== --- trunk/src/obj_subc_list.h (revision 19472) +++ trunk/src/obj_subc_list.h (revision 19473) @@ -50,11 +50,11 @@ /* Calculate a hash value using the content of the subc. The hash value represents the actual content of an subc */ -unsigned int pcb_subc_hash(const pcb_subc_t *e); +unsigned int pcb_subc_hash(pcb_subc_t *e); /* Compare two subcs and return 1 if they are qeual (their uids match and they contain the same objects). */ -int pcb_subc_eq(const pcb_subc_t *sc1, const pcb_subc_t *sc2); +int pcb_subc_eq(pcb_subc_t *sc1, pcb_subc_t *sc2); /* Create a new local variable to be used for deduplication */ #define pcb_subclist_dedup_initializer(state) htscp_t *state = NULL;