aboutsummaryrefslogtreecommitdiff
path: root/src/preproc.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2009-10-16 16:06:54 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2009-10-16 16:06:54 +0300
commit2440853f0a440667cd65b63c08d2d04dddc79ea5 (patch)
treeacba053e4ae42bee40fa1ea46b960f26a5056805 /src/preproc.c
parent455d5ce4bba0706f4c58887990ddfe0c4dd5f8d6 (diff)
downloadgrecs-2440853f0a440667cd65b63c08d2d04dddc79ea5.tar.gz
grecs-2440853f0a440667cd65b63c08d2d04dddc79ea5.tar.bz2
Minor fixes.
* gnulib.modules: Add error. * src/grecs-gram.y: Include string.h. * src/preproc.c: Include signal.h. (incl_hasher): Fix signature. * src/text.c (text_hasher): Fix signature.
Diffstat (limited to 'src/preproc.c')
-rw-r--r--src/preproc.c3
1 files changed, 2 insertions, 1 deletions
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 @@
27#include <stdarg.h> 27#include <stdarg.h>
28#include <string.h> 28#include <string.h>
29#include <errno.h> 29#include <errno.h>
30#include <signal.h>
30 31
31#include <xalloc.h> 32#include <xalloc.h>
32#include <hash.h> 33#include <hash.h>
@@ -342,7 +343,7 @@ static Hash_table *incl_sources;
342 343
343/* Calculate the hash of a struct input_file_ident. */ 344/* Calculate the hash of a struct input_file_ident. */
344static size_t 345static size_t
345incl_hasher (void const *data, unsigned n_buckets) 346incl_hasher (void const *data, size_t n_buckets)
346{ 347{
347 const struct input_file_ident *id = data; 348 const struct input_file_ident *id = data;
348 return (id->i_node + id->device) % n_buckets; 349 return (id->i_node + id->device) % n_buckets;

Return to:

Send suggestions and report system problems to the System administrator.