mirror of
https://review.haiku-os.org/haiku
synced 2024-11-23 07:18:40 +01:00
libroot: Add parentheses around third argument of ioctl.
So that the cast applies to the right part in case an expression is passed.
This commit is contained in:
parent
bbb069a1a7
commit
e4efb705e4
@ -366,8 +366,8 @@ extern int __ioctl(int fd, ulong cmd, void* argument, size_t size);
|
||||
#ifndef __cplusplus
|
||||
extern int ioctl(int fd, unsigned long op, ...);
|
||||
#define _IOCTL2(a, b) __ioctl(a, b, NULL, 0)
|
||||
#define _IOCTL3(a, b, c) __ioctl(a, b, (void*)c, 0)
|
||||
#define _IOCTL4(a, b, c, d) __ioctl(a, b, (void*)c, d)
|
||||
#define _IOCTL3(a, b, c) __ioctl(a, b, (void*)(c), 0)
|
||||
#define _IOCTL4(a, b, c, d) __ioctl(a, b, (void*)(c), d)
|
||||
#define _IOCTL(ARG1, ARG2, ARG3, ARG4, NAME, ...) NAME
|
||||
#define ioctl(...) _IOCTL(__VA_ARGS__, _IOCTL4, _IOCTL3, _IOCTL2)(__VA_ARGS__)
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user