select: Fix compilation error (regression from yesterday).
authorBruno Haible <bruno@clisp.org>
Mon, 15 May 2023 09:19:16 +0000 (11:19 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 15 May 2023 09:19:16 +0000 (11:19 +0200)
* lib/select.c (rpl_select): Revert last change.

ChangeLog
lib/select.c

index dd97e714ea6428896385272edfccd04837ca4d47..d01675a51cd831e6a250c7b85d4dee359d07e8c5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2023-05-15  Bruno Haible  <bruno@clisp.org>
 
+       select: Fix compilation error (regression from yesterday).
+       * lib/select.c (rpl_select): Revert last change.
+
        poll: Fix syntax error (regression from yesterday).
        * lib/poll.c (poll): Remove semicolon inside braces.
 
index 991f4754317faefe5a4f1560ced8c26a597e9fed..6b6ca4154c1130db6a61ef2485f4c9f9bf7c2c17 100644 (file)
@@ -516,7 +516,7 @@ restart:
           goto restart;
         }
       if (timeout && wait_timeout == 0 && rc == 0)
-        timeout = (struct timeval) {0};
+        timeout->tv_sec = timeout->tv_usec = 0;
     }
 
   /* Now fill in the results.  */