projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
COPYING and COPYING.LESSER are not on the web any more
[gnulib.git]
/
lib
/
utimecmp.c
diff --git
a/lib/utimecmp.c
b/lib/utimecmp.c
index
7308929
..
9d07e9f
100644
(file)
--- a/
lib/utimecmp.c
+++ b/
lib/utimecmp.c
@@
-39,11
+39,9
@@
#include "stat-time.h"
#include "timespec.h"
#include "utimens.h"
#include "stat-time.h"
#include "timespec.h"
#include "utimens.h"
+#include "verify.h"
#include "xalloc.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
#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. */
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;
/* Destination and source time stamps. */
time_t dst_s = dst_stat->st_mtime;