]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
tests: Rename argument from check to statement in elfshphehdr.c.
authorMark Wielaard <mjw@redhat.com>
Fri, 9 Oct 2015 10:07:27 +0000 (12:07 +0200)
committerMark Wielaard <mjw@redhat.com>
Fri, 9 Oct 2015 10:07:27 +0000 (12:07 +0200)
Some older compilers warn about a function and argument name being equal.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
tests/ChangeLog
tests/elfshphehdr.c

index 66781d0cee740e9f5be74cd0ea63c27d23e1ed4b..523a350693e5e6fdd81f76e60e530eedc939d5f9 100644 (file)
@@ -1,3 +1,8 @@
+2015-10-09  Mark Wielaard  <mjw@redhat.com>
+
+       * elfshphehdr.c (check): Rename argument from check to statement.
+       (check_elf): Likewise.
+
 2015-10-05  Josh Stone  <jistone@redhat.com>
 
        * Makefile.am (backtrace-child-biarch): Add AM_V_CC silencer.
index 5f6b96c9c25249c55f45fd5fbc71ef1c420f57d1..0d92934b600b1c138c0f6ccc1a7da0e8b7e93224 100644 (file)
@@ -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);