forked from Imagelibrary/rtems
2006-08-30 Joel Sherrill <joel@OARcorp.com>
* ftpd/ftpd.c, libcsupport/include/sys/ioccom.h, libcsupport/src/ioctl.c, libnetworking/kern/uipc_mbuf.c, libnetworking/libc/inet_addr.c, libnetworking/net/ethernet.h, libnetworking/net/if.c, libnetworking/net/if_ethersubr.c, libnetworking/net/if_ppp.c, libnetworking/net/if_pppvar.h, libnetworking/net/if_var.h, libnetworking/net/ppp_tty.c, libnetworking/netinet/in_cksum.c, libnetworking/nfs/bootp_subr.c, libnetworking/rtems/rtems_bsdnet_internal.h, libnetworking/sys/mbuf.h, pppd/md4.c, pppd/pppd.h: Remove warnings due to improper use of int which shows up on 16 bit targets. Added ioctl_command_t since IOCTL command argument does not reliably fit into 16 bits.
This commit is contained in:
@@ -90,8 +90,13 @@
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
#ifndef __ioctl_command_defined
|
||||
typedef u_int32_t ioctl_command_t;
|
||||
#define __ioctl_command_defined
|
||||
#endif
|
||||
|
||||
__BEGIN_DECLS
|
||||
int ioctl(int, int, ...);
|
||||
int ioctl(int, ioctl_command_t, ...);
|
||||
__END_DECLS
|
||||
|
||||
#endif /* !KERNEL */
|
||||
|
||||
Reference in New Issue
Block a user