summaryrefslogtreecommitdiff
path: root/gl/tests
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2013-09-02 17:44:22 +0300
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2013-09-02 17:44:22 +0300
commit0b0de7591a04844f3b3d92428fa21bdcaff55f58 (patch)
tree10a8901faada24263e8b1ae7d91cd82b88914fcf /gl/tests
parent1df1b0f7b28c733bf01e5d1faa2f8ccdb3db1665 (diff)
downloadgnutls-0b0de7591a04844f3b3d92428fa21bdcaff55f58.tar.gz
Revert "updated gnulib"
This reverts commit 9ad95f3ac723ae85fdfbe4f3a4fab4ededfa7857.
Diffstat (limited to 'gl/tests')
-rw-r--r--gl/tests/binary-io.h3
-rw-r--r--gl/tests/test-sys_select.c5
-rw-r--r--gl/tests/test-sys_time.c5
3 files changed, 4 insertions, 9 deletions
diff --git a/gl/tests/binary-io.h b/gl/tests/binary-io.h
index 423c2ae3ff..317fe3d3c2 100644
--- a/gl/tests/binary-io.h
+++ b/gl/tests/binary-io.h
@@ -25,9 +25,6 @@
so we include it here first. */
#include <stdio.h>
-#ifndef _GL_INLINE_HEADER_BEGIN
- #error "Please include config.h first."
-#endif
_GL_INLINE_HEADER_BEGIN
#ifndef BINARY_IO_INLINE
# define BINARY_IO_INLINE _GL_INLINE
diff --git a/gl/tests/test-sys_select.c b/gl/tests/test-sys_select.c
index 1604699879..cd84c0103b 100644
--- a/gl/tests/test-sys_select.c
+++ b/gl/tests/test-sys_select.c
@@ -40,9 +40,8 @@ SIGNATURE_CHECK (FD_ZERO, void, (fd_set *));
/* Check that the 'struct timeval' type is defined. */
struct timeval a;
-/* Check that a.tv_sec is wide enough to hold a time_t, ignoring
- signedness issues. */
-typedef int verify_tv_sec_type[sizeof (time_t) <= sizeof (a.tv_sec) ? 1 : -1];
+/* Check that &a.tv_sec is a 'time_t *', ignoring signedness issues. */
+typedef int verify_tv_sec_type[sizeof (a.tv_sec) == sizeof (time_t) ? 1 : -1];
/* Check that sigset_t is defined. */
sigset_t t2;
diff --git a/gl/tests/test-sys_time.c b/gl/tests/test-sys_time.c
index 80628423e1..1389b52008 100644
--- a/gl/tests/test-sys_time.c
+++ b/gl/tests/test-sys_time.c
@@ -23,9 +23,8 @@
/* Check that the 'struct timeval' type is defined. */
struct timeval a;
-/* Check that a.tv_sec is wide enough to hold a time_t, ignoring
- signedness issues. */
-typedef int verify_tv_sec_type[sizeof (time_t) <= sizeof (a.tv_sec) ? 1 : -1];
+/* Check that &a.tv_sec is a 'time_t *', ignoring signedness issues. */
+typedef int verify_tv_sec_type[sizeof (a.tv_sec) == sizeof (time_t) ? 1 : -1];
int
main (void)