summaryrefslogtreecommitdiff
path: root/tests/sys_select.in.h
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2026-03-08 17:28:33 +0100
committerJörg Frings-Fürst <debian@jff.email>2026-03-08 17:28:33 +0100
commit5f59a34ab747dde8ede7357f3431bf06bd6002fe (patch)
tree056a4477fd870d454d5be5868cddab829a47f4d2 /tests/sys_select.in.h
parent27dae84ed92f1ef0300263091972338d12e78348 (diff)
New upstream version 1.4.2upstream/1.4.2upstream
Diffstat (limited to 'tests/sys_select.in.h')
-rw-r--r--tests/sys_select.in.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/sys_select.in.h b/tests/sys_select.in.h
index 69c2fa9f..6a85efe8 100644
--- a/tests/sys_select.in.h
+++ b/tests/sys_select.in.h
@@ -1,5 +1,5 @@
/* Substitute for <sys/select.h>.
- Copyright (C) 2007-2025 Free Software Foundation, Inc.
+ Copyright (C) 2007-2026 Free Software Foundation, Inc.
This file is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
@@ -152,11 +152,10 @@ typedef int suseconds_t;
static int
rpl_fd_isset (SOCKET fd, const fd_set * set)
{
- u_int i;
if (set == NULL)
return 0;
- for (i = 0; i < set->fd_count; i++)
+ for (u_int i = 0; i < set->fd_count; i++)
if (set->fd_array[i] == fd)
return 1;
@@ -284,7 +283,6 @@ _GL_CXXALIAS_SYS_CAST (pselect, int,
_GL_CXXALIASWARN (pselect);
# endif
#elif defined GNULIB_POSIXCHECK
-# undef pselect
# if HAVE_RAW_DECL_PSELECT
_GL_WARN_ON_USE (pselect, "pselect is not portable - "
"use gnulib module pselect for portability");
@@ -317,7 +315,6 @@ _GL_CXXALIASWARN (select);
# define select select_used_without_requesting_gnulib_module_select
# endif
#elif defined GNULIB_POSIXCHECK
-# undef select
# if HAVE_RAW_DECL_SELECT
_GL_WARN_ON_USE (select, "select is not always POSIX compliant - "
"use gnulib module select for portability");