A few superficial fixes.

This commit is contained in:
Serge van den Boom
2013-09-28 22:00:47 +02:00
parent 0851e23c8e
commit 6c8387fff4
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -56,21 +56,21 @@ CharHashTable_hash(CharHashTable_HashTable *hashTable, const char *key) {
static inline uio_bool
CharHashTable_equal(CharHashTable_HashTable *hashTable,
const char *key1, const char *key2) {
(void) *hashTable;
(void) hashTable;
return strcmp(key1, key2) == 0;
}
static inline char *
CharHashTable_copy(CharHashTable_HashTable *hashTable,
const char *key) {
(void) *hashTable;
(void) hashTable;
return uio_strdup(key);
}
static inline void
CharHashTable_freeKey(CharHashTable_HashTable *hashTable,
char *key) {
(void) *hashTable;
(void) hashTable;
uio_free(key);
}
+2 -2
View File
@@ -29,8 +29,8 @@ typedef void HASHTABLE_(Value);
#define CharHashTable_EQUAL CharHashTable_equal
#define CharHashTable_COPY CharHashTable_copy
#define CharHashTable_FREEKEY CharHashTable_freeKey
#define CharHashTable_FREEVALUE(hashTable, key) \
((void) (hashTable), (void) (key))
#define CharHashTable_FREEVALUE(hashTable, value) \
((void) (hashTable), (void) (value))
#include "hashtable.h"