X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=lib%2Fpaxnames.c;h=5766d4cce3b9e9436588971d477d37cdcdfb126b;hb=1a44d77d50f4fb37c0410eed04b82303624ea2ec;hp=80fa83ebaba8b4dbf3ec5042f89ecaad03107122;hpb=138fc7e67e3d9845cd7d81aad0e9c7724784f9b9;p=debian%2Ftar diff --git a/lib/paxnames.c b/lib/paxnames.c index 80fa83eb..5766d4cc 100644 --- a/lib/paxnames.c +++ b/lib/paxnames.c @@ -1,5 +1,5 @@ /* This file is part of GNU paxutils - Copyright (C) 2005, 2007 Free Software Foundation, Inc. + Copyright (C) 2005, 2007, 2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the @@ -56,7 +56,7 @@ hash_string_insert_prefix (Hash_table **table, char const *string, size_t len, } else s = xstrdup (string); - + if (! ((t || (*table = t = hash_initialize (0, 0, hash_string_hasher, hash_string_compare, 0))) @@ -76,21 +76,6 @@ hash_string_insert_prefix (Hash_table **table, char const *string, size_t len, } } -/* Return zero if TABLE contains a copy of STRING; otherwise, insert a - copy of STRING to TABLE and return 1. */ -bool -hash_string_insert (Hash_table **table, char const *string) -{ - return hash_string_insert_prefix (table, string, 0, NULL); -} - -/* Return 1 if TABLE contains STRING. */ -bool -hash_string_lookup (Hash_table const *table, char const *string) -{ - return table && hash_lookup (table, string); -} - static Hash_table *prefix_table[2];