summaryrefslogtreecommitdiff
path: root/lib/utimecmp.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2005-12-02 00:42:52 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2005-12-02 00:42:52 +0000
commit76bebf24a531f7019ba6369eb5eafe34c2992882 (patch)
tree49f0a2466e3dceb957fee8fb154d7cba140f2f87 /lib/utimecmp.c
parentb3c0bca1f8a793e886889f711a11d4490b8cab85 (diff)
downloadcoreutils-76bebf24a531f7019ba6369eb5eafe34c2992882.tar.xz
Import from gnulib.
Diffstat (limited to 'lib/utimecmp.c')
-rw-r--r--lib/utimecmp.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/utimecmp.c b/lib/utimecmp.c
index 7308929f4..9d07e9fd3 100644
--- a/lib/utimecmp.c
+++ b/lib/utimecmp.c
@@ -39,11 +39,9 @@
#include "stat-time.h"
#include "timespec.h"
#include "utimens.h"
+#include "verify.h"
#include "xalloc.h"
-/* Verify a requirement at compile-time (unlike assert, which is runtime). */
-#define verify(name, assertion) struct name { char a[(assertion) ? 1 : -1]; }
-
#ifndef MAX
# define MAX(a, b) ((a) > (b) ? (a) : (b))
#endif
@@ -139,8 +137,8 @@ utimecmp (char const *dst_name,
time_t might be unsigned. */
- verify (time_t_is_integer, TYPE_IS_INTEGER (time_t));
- verify (twos_complement_arithmetic, TYPE_TWOS_COMPLEMENT (int));
+ verify (TYPE_IS_INTEGER (time_t));
+ verify (TYPE_TWOS_COMPLEMENT (int));
/* Destination and source time stamps. */
time_t dst_s = dst_stat->st_mtime;