From c039c9644983bfdcee7a85ef3166a53a878721eb Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Thu, 8 Oct 2009 08:35:55 -0600 Subject: maint: use X2NREALLOC in more places * src/chroot.c (set_additional_groups): Use X2NREALLOC rather than x2nrealloc. * src/factor.c (emit_factor): Likewise. * src/setuidgid.c (main): Likewise. --- src/chroot.c | 2 +- src/factor.c | 2 +- src/setuidgid.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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') -- cgit v1.2.3-54-g00ecf