]> Savannah Git Hosting - gnulib.git/commitdiff
utimens-tests: avoid unnecessary 'inline'
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 28 Aug 2012 06:11:45 +0000 (23:11 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 22 Sep 2012 08:58:22 +0000 (01:58 -0700)
* modules/fdutimensat-tests (configure.ac):
* modules/futimens-tests (configure.ac):
* modules/utimens-tests (configure.ac):
* modules/utimensat-tests (configure.ac):
Remove AC_C_INLINE.
* tests/test-utimens-common.h (ctime_compare):
No longer inline.  Simplicity and portability trump efficiency here.

ChangeLog
modules/fdutimensat-tests
modules/futimens-tests
modules/utimens-tests
modules/utimensat-tests
tests/test-utimens-common.h

index 454ee62f0805e7babf6f21799f56d6a8ad898a57..79a165a55b016a363cf10e3742e068008eb777c9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
 
+       utimens-tests: avoid unnecessary 'inline'
+       * modules/fdutimensat-tests (configure.ac):
+       * modules/futimens-tests (configure.ac):
+       * modules/utimens-tests (configure.ac):
+       * modules/utimensat-tests (configure.ac):
+       Remove AC_C_INLINE.
+       * tests/test-utimens-common.h (ctime_compare):
+       No longer inline.  Simplicity and portability trump efficiency here.
+
        misc: don't limit commentary to inline functions
        * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
        * lib/xalloc-oversized.h, lib/xsize.h:
index c4dc5af604f74833d4a6faa14992ab1e308b7ea9..9e3e77979aac251f5ffd72060d9729eba0618ede 100644 (file)
@@ -17,7 +17,6 @@ usleep
 utimecmp
 
 configure.ac:
-AC_REQUIRE([AC_C_INLINE])
 
 Makefile.am:
 TESTS += test-fdutimensat
index 1b72de5130af850c175a51ae06ae5483849116ed..ff9801961e724d6412b3003efb94be01366adba9 100644 (file)
@@ -15,7 +15,6 @@ usleep
 utimecmp
 
 configure.ac:
-AC_REQUIRE([AC_C_INLINE])
 
 Makefile.am:
 TESTS += test-futimens
index 802d8e51d1389858c890e71b4b4ef66c6df74523..4d5d1f576a3286e245e163f4c6e4c161d60b58e3 100644 (file)
@@ -16,7 +16,6 @@ usleep
 utimecmp
 
 configure.ac:
-AC_REQUIRE([AC_C_INLINE])
 
 Makefile.am:
 TESTS += test-utimens
index ec426bbcd6de2f402f36c988e7a4dee5c8ab16df..6acfe89ad6900a86bc8c9e9afca8e6bcd4a4415b 100644 (file)
@@ -14,7 +14,6 @@ usleep
 utimecmp
 
 configure.ac:
-AC_REQUIRE([AC_C_INLINE])
 
 Makefile.am:
 TESTS += test-utimensat
index d1fb0f41214e063d43d6517a924cf55465d68530..6fe8465b710dba6fbb758f7c7b65e08250da65e2 100644 (file)
@@ -59,7 +59,7 @@ enum {
 
 /* Compare two st_ctime values.  Return -1, 0 or 1, respectively
    when A's st_ctime is smaller than, equal to or greater than B's.  */
-static inline int
+static int
 ctime_compare (struct stat const *a, struct stat const *b)
 {
   if (a->st_ctime < b->st_ctime)