diff options
author | Andreas Gruenbacher <agruen@suse.de> | 2009-04-07 01:27:58 +0200 |
---|---|---|
committer | Andreas Gruenbacher <agruen@suse.de> | 2009-04-07 01:28:13 +0200 |
commit | 2782a5231540cfeb9a51a6c25fa8d7cc4b07385a (patch) | |
tree | 0f6c4c1b790ef06ddb5245cf857b66b6fe7ab884 | |
parent | d35880278d062cd60fc25d267d19b49e7811ff63 (diff) | |
download | patch-2782a5231540cfeb9a51a6c25fa8d7cc4b07385a.tar.gz |
Adapt file_id_hasher() to Gnulib type change
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | src/util.c | 6 |
2 files changed, 7 insertions, 3 deletions
@@ -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. @@ -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; } |