summaryrefslogtreecommitdiff
path: root/lib/utimecmp.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2005-10-02 22:44:15 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2005-10-02 22:44:15 +0000
commit52116d1510321c620865d5643d9fa6dd17afbf48 (patch)
tree73542c9332bb10064c2398a9f6441ee21ca3512c /lib/utimecmp.c
parent9db27e416179e3b92ae18be230250d08ae6190f5 (diff)
downloadgnulib-52116d1510321c620865d5643d9fa6dd17afbf48.tar.gz
* modules/exclude (Depends-on): Depend on verify.
* modules/strtoimax (Depends-on): Likewise. * modules/utimecmp (Depends-on): Likewise. * lib/exclude.c: Include verify.h. (verify): Remove. All callers changed to use verify.h's version. * lib/strtoimax.c: Likewise. * lib/utimecmp.c: Likewis.e
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 7308929f43..9d07e9fd3e 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;