From: Lionel Sambuc Date: Fri, 19 Apr 2013 07:54:51 +0000 (+0200) Subject: almost aligned ioctl prototype X-Git-Tag: v3.3.0~631 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/migration-4to9?a=commitdiff_plain;h=refs%2Fchanges%2F27%2F927%2F2;p=minix.git almost aligned ioctl prototype Change-Id: I7f3eaa99d2a9767f71e8387cea5c7f56dcb28f99 --- diff --git a/include/minix/ioctl.h b/include/minix/ioctl.h index fe18d9d47..f679fff01 100644 --- a/include/minix/ioctl.h +++ b/include/minix/ioctl.h @@ -53,7 +53,7 @@ #define _MINIX_IOCTL_SIZE_BIG(i) (((i) >> 8) & _IOCPARM_MASK_BIG) __BEGIN_DECLS -int ioctl(int _fd, int _request, void *_data); +int ioctl(int _fd, unsigned long _request, void *_data); __END_DECLS #endif /* _M_IOCTL_H */ diff --git a/lib/libc/sys-minix/ioctl.c b/lib/libc/sys-minix/ioctl.c index c61478473..32d4252e8 100644 --- a/lib/libc/sys-minix/ioctl.c +++ b/lib/libc/sys-minix/ioctl.c @@ -46,7 +46,7 @@ static void rewrite_i2c_minix_to_netbsd(i2c_ioctl_exec_t *out, int ioctl(fd, request, data) int fd; -int request; +unsigned long request; void *data; { int r, request_save;