summaryrefslogtreecommitdiff
path: root/tests/portable
diff options
context:
space:
mode:
authorRuss Allbery <rra@stanford.edu>2012-11-04 09:32:23 -0800
committerRuss Allbery <rra@stanford.edu>2012-11-04 09:32:23 -0800
commit5af748e6ab1dde5eb48c5316ca572be774fc5b77 (patch)
treed08f21ca22b5ab6ccf7f1f439b620b7612dcd35f /tests/portable
parentd2b811335137ad10ca9489582f31d2d5c595f7f7 (diff)
Adjust test suite to remove unused variables
Diffstat (limited to 'tests/portable')
-rw-r--r--tests/portable/snprintf-t.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/portable/snprintf-t.c b/tests/portable/snprintf-t.c
index fd4c228..4b64f5b 100644
--- a/tests/portable/snprintf-t.c
+++ b/tests/portable/snprintf-t.c
@@ -110,7 +110,7 @@ test_format(bool trunc, const char *expected, int count,
int
main(void)
{
- int n, i, count;
+ int i, count;
unsigned int j;
long lcount;
char lgbuf[128];
@@ -153,7 +153,6 @@ main(void)
is_int(31, lcount, "correct output from long %%ln");
test_format(true, "(null)", 6, "%s", NULL);
- n = 26;
for (i = 0; fp_formats[i] != NULL; i++)
for (j = 0; j < ARRAY_SIZE(fp_nums); j++) {
count = sprintf(lgbuf, fp_formats[i], fp_nums[j]);