summaryrefslogtreecommitdiffstats
path: root/UnixPkg/Sec/Gasket.c
diff options
context:
space:
mode:
Diffstat (limited to 'UnixPkg/Sec/Gasket.c')
-rw-r--r--UnixPkg/Sec/Gasket.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/UnixPkg/Sec/Gasket.c b/UnixPkg/Sec/Gasket.c
index 7df5fbbb54..826e13bad3 100644
--- a/UnixPkg/Sec/Gasket.c
+++ b/UnixPkg/Sec/Gasket.c
@@ -266,22 +266,16 @@ Gasketperror (__const char *__s)
// ... is always an int or pointer to device specific data structure
//
int
-Gasketioctl (int fd, unsigned long int __request, ...)
+Gasketioctl (int fd, unsigned long int __request, void *Arg)
{
- VA_LIST Marker;
-
- VA_START (Marker, __request);
- return GasketUintnUintnUintn (ioctl, fd, __request, VA_ARG (Marker, UINTN));
+ return GasketUintnUintnUintn (ioctl, fd, __request, (UINTN)Arg);
}
int
-Gasketfcntl (int __fd, int __cmd, ...)
+Gasketfcntl (int __fd, int __cmd, void *Arg)
{
- VA_LIST Marker;
-
- VA_START (Marker, __cmd);
- return GasketUintnUintnUintn (fcntl, __fd, __cmd, VA_ARG (Marker, UINTN));
+ return GasketUintnUintnUintn (fcntl, __fd, __cmd, (UINTN)Arg);
}