summaryrefslogtreecommitdiff
path: root/tests/elfshphehdr.c
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2015-10-09 12:07:27 +0200
committerMark Wielaard <mjw@redhat.com>2015-10-09 12:07:27 +0200
commitc53857b6a8b074c724999009b8d70b6b6e0c0f15 (patch)
tree6a80a58df960f40d0fe28f77ec1eea0af7f78b91 /tests/elfshphehdr.c
parent3a45dbbe7e1862e72bc886fa7f12a5c5c09311e0 (diff)
downloadelfutils-c53857b6a8b074c724999009b8d70b6b6e0c0f15.tar.gz
tests: Rename argument from check to statement in elfshphehdr.c.
Some older compilers warn about a function and argument name being equal. Signed-off-by: Mark Wielaard <mjw@redhat.com>
Diffstat (limited to 'tests/elfshphehdr.c')
-rw-r--r--tests/elfshphehdr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/elfshphehdr.c b/tests/elfshphehdr.c
index 5f6b96c9..0d92934b 100644
--- a/tests/elfshphehdr.c
+++ b/tests/elfshphehdr.c
@@ -31,9 +31,9 @@
#include <stdbool.h>
void
-check (const char *msg, bool check)
+check (const char *msg, bool statement)
{
- if (! check)
+ if (! statement)
{
fprintf (stderr, "%s FAILED\n", msg);
exit (-1);
@@ -43,9 +43,9 @@ check (const char *msg, bool check)
}
void
-check_elf (const char *msg, bool check)
+check_elf (const char *msg, bool statement)
{
- if (! check)
+ if (! statement)
{
fprintf (stderr, "%s: %s\n", msg, elf_errmsg (-1));
exit (-1);