aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnulib.modules1
-rw-r--r--src/grecs-gram.y3
-rw-r--r--src/preproc.c3
-rw-r--r--src/text.c2
4 files changed, 6 insertions, 3 deletions
diff --git a/gnulib.modules b/gnulib.modules
index 5ba9e5f..910f8d0 100644
--- a/gnulib.modules
+++ b/gnulib.modules
@@ -1,5 +1,6 @@
# getdtablesize ??
c-ctype
+error
getline
hash
inttostr
diff --git a/src/grecs-gram.y b/src/grecs-gram.y
index dcc59dd..ffa2672 100644
--- a/src/grecs-gram.y
+++ b/src/grecs-gram.y
@@ -29,7 +29,8 @@
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
-
+#include <string.h>
+
#include <xalloc.h>
#include <inttypes.h>
diff --git a/src/preproc.c b/src/preproc.c
index 9f25f77..bd01b85 100644
--- a/src/preproc.c
+++ b/src/preproc.c
@@ -27,6 +27,7 @@
#include <stdarg.h>
#include <string.h>
#include <errno.h>
+#include <signal.h>
#include <xalloc.h>
#include <hash.h>
@@ -342,7 +343,7 @@ static Hash_table *incl_sources;
/* Calculate the hash of a struct input_file_ident. */
static size_t
-incl_hasher (void const *data, unsigned n_buckets)
+incl_hasher (void const *data, size_t n_buckets)
{
const struct input_file_ident *id = data;
return (id->i_node + id->device) % n_buckets;
diff --git a/src/text.c b/src/text.c
index be94fe1..c200fb3 100644
--- a/src/text.c
+++ b/src/text.c
@@ -26,7 +26,7 @@ static Hash_table *text_table;
/* Calculate the hash of a string. */
static size_t
-text_hasher (void const *data, unsigned n_buckets)
+text_hasher (void const *data, size_t n_buckets)
{
return hash_string (data, n_buckets);
}

Return to:

Send suggestions and report system problems to the System administrator.