almost aligned ioctl prototype
Change-Id: I7f3eaa99d2a9767f71e8387cea5c7f56dcb28f99
This commit is contained in:
		
							parent
							
								
									7d1cb1caef
								
							
						
					
					
						commit
						f84d21b043
					
				@ -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 */
 | 
			
		||||
 | 
			
		||||
@ -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;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user