]> Zhao Yanbai Git Server - minix.git/commitdiff
almost aligned ioctl prototype 27/927/2
authorLionel Sambuc <lionel@minix3.org>
Fri, 19 Apr 2013 07:54:51 +0000 (09:54 +0200)
committerLionel Sambuc <lionel@minix3.org>
Tue, 18 Feb 2014 10:25:01 +0000 (11:25 +0100)
Change-Id: I7f3eaa99d2a9767f71e8387cea5c7f56dcb28f99

include/minix/ioctl.h
lib/libc/sys-minix/ioctl.c

index fe18d9d47687c8970aca2987e1f9ab01fb10ae77..f679fff01b8f9cdd11ba64160620b51f568f5b75 100644 (file)
@@ -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 */
index c6147847320d204dfac68e8d57238bd11f8cb126..32d4252e8fc8d010dc2a828374057d5fad18fcf2 100644 (file)
@@ -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;