Mercurial > gnulib
changeset 21354:5e627ff972e6
(quotearg_n_options): Revert type of parameter `n'
(and hence that of the local `n1', too) to `int' at Paul's request.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Mon, 25 Jan 1999 00:17:22 +0000 |
parents | 84975cb6531f |
children | 6d9aeed94e05 |
files | lib/quotearg.c |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/quotearg.c Mon Jan 25 00:13:36 1999 +0000 +++ b/lib/quotearg.c Mon Jan 25 00:17:22 1999 +0000 @@ -299,9 +299,10 @@ OPTIONS specifies the quoting options. The returned value points to static storage that can be reused by the next call to this function with the same value of N. - N must be nonnegative. */ + N must be nonnegative. N is deliberately declared with type `int' + to allow for future extensions (using negative values). */ static char * -quotearg_n_options (unsigned int n, char const *arg, +quotearg_n_options (int n, char const *arg, struct quoting_options const *options) { static unsigned int nslots; @@ -313,7 +314,7 @@ if (nslots <= n) { - unsigned int n1 = n + 1; + int n1 = n + 1; size_t s = n1 * sizeof (struct slotvec); if (! (0 < n1 && n1 == s / sizeof (struct slotvec))) abort ();