projects
/
rrq
/
rrqmisc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added compilation variant
[rrq/rrqmisc.git]
/
vector
/
HashVector.c
diff --git
a/vector/HashVector.c
b/vector/HashVector.c
index a07a9169b2c1167cff10c9ba8c37430f6b15898b..19269c1a0eaec61137ee12565bcf92905ee83154 100644
(file)
--- a/
vector/HashVector.c
+++ b/
vector/HashVector.c
@@
-57,7
+57,7
@@
static void **HashVector_find_slot(
// Find the keyed item
void *HashVector_find(HashVector *hv,void *key) {
VectorIndex index = 0;
// Find the keyed item
void *HashVector_find(HashVector *hv,void *key) {
VectorIndex index = 0;
- void **slot = HashVector_find_slot( hv,
&index, key
, 0 );
+ void **slot = HashVector_find_slot( hv,
key, &index
, 0 );
return ( slot && *slot && *slot != HV_HOLE )? *slot : 0;
}
return ( slot && *slot && *slot != HV_HOLE )? *slot : 0;
}
@@
-78,6
+78,7
@@
void *HashVector_next(HashVector *hv,VectorIndex *index) {
}
static int capture_item(Vector *pv,unsigned long ix,void *item,void *data) {
}
static int capture_item(Vector *pv,unsigned long ix,void *item,void *data) {
+ (void)pv; (void)ix;
if ( item && item != HV_HOLE ) {
HashVector_add( (HashVector *) data, item );
}
if ( item && item != HV_HOLE ) {
HashVector_add( (HashVector *) data, item );
}
@@
-85,6
+86,7
@@
static int capture_item(Vector *pv,unsigned long ix,void *item,void *data) {
}
static int iter_item(unsigned long ix,void *item,void *data) {
}
static int iter_item(unsigned long ix,void *item,void *data) {
+ (void)ix;
if ( item && item != HV_HOLE ) {
HashVector_add( (HashVector *) data, item );
}
if ( item && item != HV_HOLE ) {
HashVector_add( (HashVector *) data, item );
}