summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@suse.de>2009-04-07 01:27:58 +0200
committerAndreas Gruenbacher <agruen@suse.de>2009-04-07 01:28:13 +0200
commit2782a5231540cfeb9a51a6c25fa8d7cc4b07385a (patch)
tree0f6c4c1b790ef06ddb5245cf857b66b6fe7ab884
parentd35880278d062cd60fc25d267d19b49e7811ff63 (diff)
downloadpatch-2782a5231540cfeb9a51a6c25fa8d7cc4b07385a.tar.gz
Adapt file_id_hasher() to Gnulib type change
-rw-r--r--ChangeLog4
-rw-r--r--src/util.c6
2 files changed, 7 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index e67cf35..f4fc12b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-04-07 Andreas Gruenbacher <agruen@suse.de>
+
+ * src/util.c (file_id_hasher): Adapt to Gnulib type change.
+
2009-04-06 Andreas Gruenbacher <agruen@suse.de>
Fix the "patch would create" fix from 2009-03-28.
diff --git a/src/util.c b/src/util.c
index daf37c8..18d33cd 100644
--- a/src/util.c
+++ b/src/util.c
@@ -55,11 +55,11 @@ typedef struct
/* Return an index for ENTRY into a hash table of size TABLE_SIZE. */
-static unsigned int
-file_id_hasher (void const *entry, unsigned int table_size)
+static size_t
+file_id_hasher (void const *entry, size_t table_size)
{
file_id const *e = entry;
- unsigned int i = e->ino + e->dev;
+ size_t i = e->ino + e->dev;
return i % table_size;
}