]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libiberty/hashtab.c
libiberty: writeargv: Simplify function error mode.
[thirdparty/gcc.git] / libiberty / hashtab.c
index f7621cd47e554a71175db70441d45f9d692ee5b5..8d3ae4cfaef2c3fd759f291621fd5b0158333724 100644 (file)
@@ -1,5 +1,5 @@
 /* An expandable hash tables datatype.  
-   Copyright (C) 1999-2022 Free Software Foundation, Inc.
+   Copyright (C) 1999-2023 Free Software Foundation, Inc.
    Contributed by Vladimir Makarov (vmakarov@cygnus.com).
 
 This file is part of the libiberty library.
@@ -458,9 +458,9 @@ htab_empty (htab_t htab)
        (*htab->free_with_arg_f) (htab->alloc_arg, htab->entries);
       if (htab->alloc_with_arg_f != NULL)
        htab->entries = (void **) (*htab->alloc_with_arg_f) (htab->alloc_arg, nsize,
-                                                          sizeof (void **));
+                                                            sizeof (void *));
       else
-       htab->entries = (void **) (*htab->alloc_f) (nsize, sizeof (void **));
+       htab->entries = (void **) (*htab->alloc_f) (nsize, sizeof (void *));
      htab->size = nsize;
      htab->size_prime_index = nindex;
     }
@@ -544,9 +544,9 @@ htab_expand (htab_t htab)
 
   if (htab->alloc_with_arg_f != NULL)
     nentries = (void **) (*htab->alloc_with_arg_f) (htab->alloc_arg, nsize,
-                                                 sizeof (void **));
+                                                   sizeof (void *));
   else
-    nentries = (void **) (*htab->alloc_f) (nsize, sizeof (void **));
+    nentries = (void **) (*htab->alloc_f) (nsize, sizeof (void *));
   if (nentries == NULL)
     return 0;
   htab->entries = nentries;