/* networking may not be installed in kernel */
#ifdef _ISC
STRSET(SIOCGIFCONF, (caddr_t) ifconf, sizeof(ifconf_buf));
- if ((int) ioctl(sock, I_STR, (caddr_t) &strioctl) < 0)
+ if (ioctl(sock, I_STR, (caddr_t) &strioctl) < 0)
#else
- if ((int) ioctl(sock, SIOCGIFCONF, (caddr_t) ifconf) < 0)
+ if (ioctl(sock, SIOCGIFCONF, (caddr_t) ifconf) < 0)
#endif /* _ISC */
return;
/* get the ip address */
#ifdef _ISC
STRSET(SIOCGIFADDR, (caddr_t) &ifreq, sizeof(ifreq));
- if ((int) ioctl(sock, I_STR, (caddr_t) &strioctl) < 0) {
+ if (ioctl(sock, I_STR, (caddr_t) &strioctl) < 0) {
#else
- if ((int) ioctl(sock, SIOCGIFADDR, (caddr_t) &ifreq)) {
+ if (ioctl(sock, SIOCGIFADDR, (caddr_t) &ifreq)) {
#endif /* _ISC */
/* non-fatal error if interface is down or not supported */
if (errno == EADDRNOTAVAIL || errno == ENXIO || errno == EAFNOSUPPORT)
#ifdef SIOCGIFNETMASK
#ifdef _ISC
STRSET(SIOCGIFNETMASK, (caddr_t) &ifreq, sizeof(ifreq));
- if ((int) ioctl(sock, I_STR, (caddr_t) &strioctl) == 0) {
+ if (ioctl(sock, I_STR, (caddr_t) &strioctl) == 0) {
#else
- if ((int) ioctl(sock, SIOCGIFNETMASK, (caddr_t) &ifreq) == 0) {
+ if (ioctl(sock, SIOCGIFNETMASK, (caddr_t) &ifreq) == 0) {
#endif /* _ISC */
sin = (struct sockaddr_in *) &ifreq.ifr_addr;