diff options
author | Erik Kline | 2019-04-24 00:20:05 +0200 |
---|---|---|
committer | Laurent Vivier | 2019-05-10 12:44:00 +0200 |
commit | 43330b7169ae76222472a4b20c7f4db9d8880527 (patch) | |
tree | 4ec7a3b7ddaca49f800686ad63a7edafe5fc0c32 /linux-user | |
parent | linux-user: avoid string truncation warnings in uname field copying (diff) | |
download | qemu-43330b7169ae76222472a4b20c7f4db9d8880527.tar.gz qemu-43330b7169ae76222472a4b20c7f4db9d8880527.tar.xz qemu-43330b7169ae76222472a4b20c7f4db9d8880527.zip |
The ioctl(SIOCGIFNAME) call requires a struct ifreq.
Signed-off-by: Erik Kline <ek@google.com>
Buglink: https://bugs.launchpad.net/qemu/+bug/1814352
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20190423222005.246981-1-ek@google.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'linux-user')
-rw-r--r-- | linux-user/ioctls.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h index ae8951625f..37501f575c 100644 --- a/linux-user/ioctls.h +++ b/linux-user/ioctls.h @@ -178,7 +178,7 @@ #endif /* CONFIG_USBFS */ IOCTL(SIOCATMARK, IOC_R, MK_PTR(TYPE_INT)) - IOCTL(SIOCGIFNAME, IOC_RW, MK_PTR(TYPE_INT)) + IOCTL(SIOCGIFNAME, IOC_RW, MK_PTR(MK_STRUCT(STRUCT_int_ifreq))) IOCTL(SIOCGIFFLAGS, IOC_W | IOC_R, MK_PTR(MK_STRUCT(STRUCT_short_ifreq))) IOCTL(SIOCSIFFLAGS, IOC_W, MK_PTR(MK_STRUCT(STRUCT_short_ifreq))) IOCTL(SIOCGIFADDR, IOC_W | IOC_R, MK_PTR(MK_STRUCT(STRUCT_sockaddr_ifreq))) |