libcsa: Resolve all strict-prototype warnings

This commit is contained in:
Peter Howkins
2020-08-01 22:45:55 +01:00
parent ce4fad4c5a
commit f4eb62fa69
12 changed files with 21 additions and 29 deletions

View File

@@ -101,7 +101,7 @@ Author: Bart Smaalders 1/89
#include <string.h>
#include "hash.h"
static int hash_string();
static int hash_string(const char *s, int modulo);
typedef struct hash_entry {
struct hash_entry
@@ -205,7 +205,7 @@ void ** _DtCmFindHash(void * t, const unsigned char * key)
return(NULL);
}
void _DtCmDestroyHash(void * t, int (*ptr)(), void * usr_arg)
void _DtCmDestroyHash(void * t, int (*ptr)(void *, void *, unsigned char *), void * usr_arg)
{
hash * tbl = (hash *) t;
hash_entry * tmp = tbl->start, * prev;
@@ -225,7 +225,7 @@ void _DtCmDestroyHash(void * t, int (*ptr)(), void * usr_arg)
free(tbl);
}
static int hash_string(char *s, int modulo)
static int hash_string(const char *s, int modulo)
{
unsigned result = 0;
int i=1;