return isn't a function FFS
[apps/madmutt.git] / lib-lib / hash.c
index 569ed30..c703def 100644 (file)
@@ -117,7 +117,7 @@ int hash_insert(hash_t *table, const char *key, void *data)
 
             if (r == 0) {
                 p_delete(&ptr);
-                return (-1);
+                return -1;
             }
             if (r > 0)
                 break;
@@ -136,7 +136,7 @@ void *hash_find(const hash_t *table, const char *key)
 
     for (ptr = table->table[hash]; ptr; ptr = ptr->next) {
         if (m_strcmp(key, ptr->key) == 0)
-            return (ptr->data);
+            return ptr->data;
     }
     return NULL;
 }