]> Dogcows Code - chaz/tar/commitdiff
Adjust to new hash API.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 2 May 2005 08:02:09 +0000 (08:02 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 2 May 2005 08:02:09 +0000 (08:02 +0000)
src/create.c
src/incremen.c
src/names.c

index 505dca33cfcac2055ecf4371fa3210a90067392e..d8f0c765b04ff35544a4372d3cdf874eb1dfb8b8 100644 (file)
@@ -1211,8 +1211,8 @@ create_archive (void)
 
 
 /* Calculate the hash of a link.  */
-static unsigned
-hash_link (void const *entry, unsigned n_buckets)
+static size_t
+hash_link (void const *entry, size_t n_buckets)
 {
   struct link const *l = entry;
   uintmax_t num = l->dev ^ l->ino;
index 2c2dee95b70ddea91ab22a38028eeebcf620f2e3..6fb6e31ce4b874c9951e9c2fc78a091fbf22efd9 100644 (file)
@@ -50,8 +50,8 @@ static Hash_table *directory_table;
 #endif
 
 /* Calculate the hash of a directory.  */
-static unsigned
-hash_directory (void const *entry, unsigned n_buckets)
+static size_t
+hash_directory (void const *entry, size_t n_buckets)
 {
   struct directory const *directory = entry;
   return hash_string (directory->name, n_buckets);
@@ -520,7 +520,7 @@ purge_directory (char const *directory_name)
              stat_diag (p);
              WARN((0, 0, _("%s: Not purging directory: unable to stat"),
                    quotearg_colon (p)));
-             continue; 
+             continue;
            }
          else if (one_file_system_option && st.st_dev != root_device)
            {
@@ -529,7 +529,7 @@ purge_directory (char const *directory_name)
                    quotearg_colon (p)));
              continue;
            }
-           
+
          if (! interactive_option || confirm ("delete", p))
            {
              if (verbose_option)
index 5f3b18b47f9cc9e753237cbb6050aa9befb32b1d..f86582d7ebbc8fb93a33275e3a2a2da36aedc1a7 100644 (file)
@@ -266,20 +266,20 @@ name_next (int change_dirs)
       if (name_buffer_length < source_len)
        {
          do
-           {   
+           {
              name_buffer_length *= 2;
              if (! name_buffer_length)
                xalloc_die ();
            }
          while (name_buffer_length < source_len);
-         
+
          free (name_buffer);
          name_buffer = xmalloc (name_buffer_length + 2);
        }
       strcpy (name_buffer, source);
 
       /* Zap trailing slashes.  */
-      
+
       cursor = name_buffer + strlen (name_buffer) - 1;
       while (cursor > name_buffer && ISSLASH (*cursor))
        *cursor-- = '\0';
@@ -867,8 +867,8 @@ excluded_name (char const *name)
 /* Hash tables of strings.  */
 
 /* Calculate the hash of a string.  */
-static unsigned
-hash_string_hasher (void const *name, unsigned n_buckets)
+static size_t
+hash_string_hasher (void const *name, size_t n_buckets)
 {
   return hash_string (name, n_buckets);
 }
This page took 0.029093 seconds and 4 git commands to generate.