From 5f59a34ab747dde8ede7357f3431bf06bd6002fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sun, 8 Mar 2026 17:28:33 +0100 Subject: New upstream version 1.4.2 --- tests/ioctl.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'tests/ioctl.c') 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 -- cgit v1.2.3