diff options
author | Russ Allbery <rra@stanford.edu> | 2012-11-04 09:32:23 -0800 |
---|---|---|
committer | Russ Allbery <rra@stanford.edu> | 2012-11-04 09:32:23 -0800 |
commit | 5af748e6ab1dde5eb48c5316ca572be774fc5b77 (patch) | |
tree | d08f21ca22b5ab6ccf7f1f439b620b7612dcd35f /tests/util/xmalloc.c | |
parent | d2b811335137ad10ca9489582f31d2d5c595f7f7 (diff) |
Adjust test suite to remove unused variables
Diffstat (limited to 'tests/util/xmalloc.c')
-rw-r--r-- | tests/util/xmalloc.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/util/xmalloc.c b/tests/util/xmalloc.c index b6f4564..c37396e 100644 --- a/tests/util/xmalloc.c +++ b/tests/util/xmalloc.c @@ -177,13 +177,12 @@ static int test_asprintf(size_t size) { char *copy, *string; - int status; size_t i; string = xmalloc(size); memset(string, 42, size - 1); string[size - 1] = '\0'; - status = xasprintf(©, "%s", string); + xasprintf(©, "%s", string); free(string); for (i = 0; i < size - 1; i++) if (copy[i] != 42) @@ -217,13 +216,12 @@ static int test_vasprintf(size_t size) { char *copy, *string; - int status; size_t i; string = xmalloc(size); memset(string, 42, size - 1); string[size - 1] = '\0'; - status = xvasprintf_wrapper(©, "%s", string); + xvasprintf_wrapper(©, "%s", string); free(string); for (i = 0; i < size - 1; i++) if (copy[i] != 42) |