summaryrefslogtreecommitdiff
path: root/tests/ioctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ioctl.c')
-rw-r--r--tests/ioctl.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/tests/ioctl.c b/tests/ioctl.c
index a92df8b1..a807c8ae 100644
--- a/tests/ioctl.c
+++ b/tests/ioctl.c
@@ -1,6 +1,6 @@
/* ioctl.c --- wrappers for Windows ioctl function
- Copyright (C) 2008-2025 Free Software Foundation, Inc.
+ Copyright (C) 2008-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
@@ -30,11 +30,9 @@
int
rpl_ioctl (int fd, int request, ... /* {void *,char *} arg */)
{
- void *buf;
va_list args;
-
va_start (args, request);
- buf = va_arg (args, void *);
+ void *buf = va_arg (args, void *);
va_end (args);
/* Cast 'request' so that when the system's ioctl function takes a 64-bit
@@ -75,11 +73,9 @@ primary_ioctl (int fd, int request, void *arg)
int
ioctl (int fd, int request, ... /* {void *,char *} arg */)
{
- void *arg;
va_list args;
-
va_start (args, request);
- arg = va_arg (args, void *);
+ void *arg = va_arg (args, void *);
va_end (args);
# if WINDOWS_SOCKETS