diff options
| author | Johann Latocha | 2012-01-30 14:54:49 +0100 |
|---|---|---|
| committer | Johann Latocha | 2012-01-30 14:54:49 +0100 |
| commit | 7436b3d1517e69bc4f83f1f4060a1765d6b4dd19 (patch) | |
| tree | ff2fd1f939f61c7e8bcd9350b19f3388b11879d7 /src/server/hashtable.c | |
| parent | [KERNEL] Change server at runtime (diff) | |
| download | dnbd3-7436b3d1517e69bc4f83f1f4060a1765d6b4dd19.tar.gz dnbd3-7436b3d1517e69bc4f83f1f4060a1765d6b4dd19.tar.xz dnbd3-7436b3d1517e69bc4f83f1f4060a1765d6b4dd19.zip | |
[SERVER] Some refactoring
Diffstat (limited to 'src/server/hashtable.c')
| -rw-r--r-- | src/server/hashtable.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/server/hashtable.c b/src/server/hashtable.c index b6272f2..423e7d2 100644 --- a/src/server/hashtable.c +++ b/src/server/hashtable.c @@ -30,19 +30,19 @@ char value_buf[MAX_NUMBER_IMAGES * MAX_FILE_NAME]; char *key_ptr = key_buf; char *val_ptr = value_buf; -void ht_create() +void dnbd3_ht_create() { (void) hcreate(MAX_NUMBER_IMAGES); } -void ht_destroy() +void dnbd3_ht_destroy() { key_ptr = key_buf; val_ptr = value_buf; hdestroy(); } -int ht_insert(char* key, char* value) +int dnbd3_ht_insert(char* key, char* value) { if (strlen(key) > MAX_FILE_ID) return -1; if (strlen(value) > MAX_FILE_NAME) return -2; @@ -62,7 +62,7 @@ int ht_insert(char* key, char* value) return 0; } -char* ht_search(char* key) +char* dnbd3_ht_search(char* key) { ENTRY *result; |
