summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/chroot.c2
-rw-r--r--src/factor.c2
-rw-r--r--src/setuidgid.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/chroot.c b/src/chroot.c
index 5e8cb9c6a..9269f1b0e 100644
--- a/src/chroot.c
+++ b/src/chroot.c
@@ -91,7 +91,7 @@ set_additional_groups (char const *groups)
}
if (n_gids == n_gids_allocated)
- gids = x2nrealloc (gids, &n_gids_allocated, sizeof *gids);
+ gids = X2NREALLOC (gids, &n_gids_allocated);
gids[n_gids++] = value;
}
diff --git a/src/factor.c b/src/factor.c
index f48a72084..38c9a115b 100644
--- a/src/factor.c
+++ b/src/factor.c
@@ -67,7 +67,7 @@ static void
emit_factor (mpz_t n)
{
if (nfactors_found == nfactors_allocated)
- factor = x2nrealloc (factor, &nfactors_allocated, sizeof *factor);
+ factor = X2NREALLOC (factor, &nfactors_allocated);
mpz_init (factor[nfactors_found]);
mpz_set (factor[nfactors_found], n);
++nfactors_found;
diff --git a/src/setuidgid.c b/src/setuidgid.c
index 7176b1ae7..34be5155a 100644
--- a/src/setuidgid.c
+++ b/src/setuidgid.c
@@ -110,7 +110,7 @@ main (int argc, char **argv)
error (EXIT_FAILURE, 0, _("invalid group %s"),
quote (gr));
if (n_gids == n_gids_allocated)
- gids = x2nrealloc (gids, &n_gids_allocated, sizeof *gids);
+ gids = X2NREALLOC (gids, &n_gids_allocated);
gids[n_gids++] = tmp_ul;
if (*ptr == '\0')