tests: Use ZERO_STRUCT for readfds
This fixes a compiler warning on FreeBSD. Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Этот коммит содержится в:
родитель
f433949dcd
Коммит
3b896750b8
@ -12,13 +12,15 @@
|
|||||||
|
|
||||||
static void torture_channel_select(void **state)
|
static void torture_channel_select(void **state)
|
||||||
{
|
{
|
||||||
fd_set readfds = {0};
|
fd_set readfds;
|
||||||
int fd;
|
int fd;
|
||||||
int rc;
|
int rc;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
(void)state; /* unused */
|
(void)state; /* unused */
|
||||||
|
|
||||||
|
ZERO_STRUCT(readfds);
|
||||||
|
|
||||||
fd = open("/dev/null", 0);
|
fd = open("/dev/null", 0);
|
||||||
assert_true(fd > 2);
|
assert_true(fd > 2);
|
||||||
|
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user