diff options
author | Jim Meyering <jim@meyering.net> | 2003-10-25 15:34:01 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-10-25 15:34:01 +0000 |
commit | fc80caecd8280f6470eb330bebb43cef378bcd2d (patch) | |
tree | daccdd3868bdddcbdd58444951ecdb5b7ab0d6e3 /src | |
parent | 0a875d3d7b456f88e1c261834b48a9ae59254457 (diff) | |
download | coreutils-fc80caecd8280f6470eb330bebb43cef378bcd2d.tar.xz |
(triple_hash, triple_hash_no_name): Adjust to reflect
type changes (unsigned int -> size_t) in hash.c.
Diffstat (limited to 'src')
-rw-r--r-- | src/copy.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/copy.c b/src/copy.c index 3981f9cc8..392a45064 100644 --- a/src/copy.c +++ b/src/copy.c @@ -639,8 +639,8 @@ overwrite_prompt (char const *dst_path, struct stat const *dst_sb) } /* Hash an F_triple. */ -static unsigned int -triple_hash (void const *x, unsigned int table_size) +static size_t +triple_hash (void const *x, size_t table_size) { struct F_triple const *p = x; @@ -652,15 +652,15 @@ triple_hash (void const *x, unsigned int table_size) to be very large to make the N^2 factor noticable, and one would probably encounter a limit on the length of a command line before it became a problem. */ - unsigned int tmp = hash_pjw (p->name, table_size); + size_t tmp = hash_pjw (p->name, table_size); /* Ignoring the device number here should be fine. */ return (tmp | p->st_ino) % table_size; } /* Hash an F_triple. */ -static unsigned int -triple_hash_no_name (void const *x, unsigned int table_size) +static size_t +triple_hash_no_name (void const *x, size_t table_size) { struct F_triple const *p = x; |