libunwind-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Libunwind-devel] [PATCH 06/27] Eliminate unused parameters in tests


From: Tommi Rantala
Subject: [Libunwind-devel] [PATCH 06/27] Eliminate unused parameters in tests
Date: Wed, 22 Aug 2012 14:28:32 +0300

---
 tests/Gtest-nocalloc.c |    2 +-
 tests/Gtest-nomalloc.c |    2 +-
 tests/mapper.c         |    2 +-
 tests/test-ptrace.c    |   10 +++++-----
 tests/test-varargs.c   |    2 +-
 5 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/tests/Gtest-nocalloc.c b/tests/Gtest-nocalloc.c
index cf1d3f7..d16cf0b 100644
--- a/tests/Gtest-nocalloc.c
+++ b/tests/Gtest-nocalloc.c
@@ -111,7 +111,7 @@ foo1 (void)
 }
 
 int
-main (int argc, char **argv)
+main (void)
 {
   int i, num_errors;
 
diff --git a/tests/Gtest-nomalloc.c b/tests/Gtest-nomalloc.c
index 70faa36..db77854 100644
--- a/tests/Gtest-nomalloc.c
+++ b/tests/Gtest-nomalloc.c
@@ -101,7 +101,7 @@ foo1 ()
 }
 
 int
-main (int argc, char **argv)
+main (void)
 {
   foo1();
 
diff --git a/tests/mapper.c b/tests/mapper.c
index 6edce71..e84697b 100644
--- a/tests/mapper.c
+++ b/tests/mapper.c
@@ -41,7 +41,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 
SOFTWARE.  */
 #endif
 
 int
-main (int argc, char **argv)
+main (void)
 {
   long n = 0;
 
diff --git a/tests/test-ptrace.c b/tests/test-ptrace.c
index 7d76200..17a1b61 100644
--- a/tests/test-ptrace.c
+++ b/tests/test-ptrace.c
@@ -28,7 +28,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 
SOFTWARE.  */
 #ifdef HAVE_TTRACE
 
 int
-main (int argc, char **argv)
+main (void)
 {
   printf ("FAILURE: ttrace() not supported yet\n");
   return -1;
@@ -73,7 +73,7 @@ static struct UPT_info *ui;
 static int killed;
 
 void
-do_backtrace (pid_t target_pid)
+do_backtrace (void)
 {
   unw_word_t ip, sp, start_ip = 0, off;
   int n = 0, ret;
@@ -301,7 +301,7 @@ main (int argc, char **argv)
 #endif
          else
            {
-             do_backtrace (target_pid);
+             do_backtrace ();
 #if HAVE_DECL_PTRACE_SINGLESTEP
              ptrace (PTRACE_SINGLESTEP, target_pid, 0, pending_sig);
 #elif HAVE_DECL_PT_STEP
@@ -314,7 +314,7 @@ main (int argc, char **argv)
 
        case SYSCALL:
          if (!state)
-           do_backtrace (target_pid);
+           do_backtrace ();
          state ^= 1;
 #if HAVE_DECL_PTRACE_SYSCALL
          ptrace (PTRACE_SYSCALL, target_pid, 0, pending_sig);
@@ -326,7 +326,7 @@ main (int argc, char **argv)
          break;
 
        case INSTRUCTION:
-         do_backtrace (target_pid);
+         do_backtrace ();
 #if HAVE_DECL_PTRACE_SINGLESTEP
              ptrace (PTRACE_SINGLESTEP, target_pid, 0, pending_sig);
 #elif HAVE_DECL_PT_STEP
diff --git a/tests/test-varargs.c b/tests/test-varargs.c
index b712f5d..9366461 100644
--- a/tests/test-varargs.c
+++ b/tests/test-varargs.c
@@ -45,7 +45,7 @@ a (int d, ...)
 }
 
 int
-main (int argc, char **argv)
+main (void)
 {
   a (5, 3, 4, 5, 6);
   return 0;
-- 
1.7.9.5




reply via email to

[Prev in Thread] Current Thread [Next in Thread]