bug-gnulib
[Top][All Lists]
Advanced

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

[PATCH] test-rename.h: fix compilation failure


From: Jim Meyering
Subject: [PATCH] test-rename.h: fix compilation failure
Date: Fri, 19 Nov 2010 14:28:24 +0100

Without this, I'd get failures in coreutils' "make check":

  test-rename.c: In function 'test_rename':
  test-rename.c:43:1: error: 'main' is normally a non-static function [-Wmain]
  test-rename.c:49:1: error: expected declaration or statement at end of input


>From db37bb3e918ce69fd0bf5e45752edd07f49ae07d Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Fri, 19 Nov 2010 14:26:08 +0100
Subject: [PATCH] test-rename.h: fix compilation failure

* tests/test-rename.h (test_rename): Add omitted "}".
---
 ChangeLog           |    5 +++++
 tests/test-rename.h |    1 +
 2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index f530101..e4f534d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-11-19  Jim Meyering  <address@hidden>
+
+       test-rename.h: fix compilation failure
+       * tests/test-rename.h (test_rename): Add omitted "}".
+
 2010-11-17  Jim Meyering  <address@hidden>

        maint.mk: add a URL discussing the address@hidden policy
diff --git a/tests/test-rename.h b/tests/test-rename.h
index b8ff4fe..c9437c4 100644
--- a/tests/test-rename.h
+++ b/tests/test-rename.h
@@ -783,6 +783,7 @@ test_rename (int (*func) (char const *, char const *), bool 
print)
       ASSERT (lstat (BASE "link1", &st) == 0);
       ASSERT (S_ISLNK (st.st_mode));
     }
+  }
   /* Files present here:
        {BASE}file
        {BASE}link1 -> {BASE}file
--
1.7.3.2.765.g642a8



reply via email to

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