diff options
author | Eric Andersen | 2006-01-30 22:48:39 +0000 |
---|---|---|
committer | Eric Andersen | 2006-01-30 22:48:39 +0000 |
commit | a68ea1cb93c29125bc4f30ddd415fca02249e010 (patch) | |
tree | 5741be315758b807145c24da9ff3a1dbf8fce4e8 /miscutils | |
parent | 9a58b02ec75caafb7214f1ad0317f9a4830cbd2a (diff) | |
download | busybox-a68ea1cb93c29125bc4f30ddd415fca02249e010.zip busybox-a68ea1cb93c29125bc4f30ddd415fca02249e010.tar.gz |
fix up yet more annoying signed/unsigned and mixed type errors
Diffstat (limited to 'miscutils')
-rw-r--r-- | miscutils/devfsd.c | 3 | ||||
-rw-r--r-- | miscutils/hdparm.c | 6 |
2 files changed, 5 insertions, 4 deletions
diff --git a/miscutils/devfsd.c b/miscutils/devfsd.c index d8a630c..fce63e5 100644 --- a/miscutils/devfsd.c +++ b/miscutils/devfsd.c @@ -476,7 +476,8 @@ int devfsd_main (int argc, char **argv) if (fcntl (fd, F_SETFD, FD_CLOEXEC) != 0) devfsd_perror_msg_and_die("FD_CLOEXEC"); - do_ioctl_and_die(fd, DEVFSDIOC_GET_PROTO_REV,(int )&proto_rev); + if (ioctl (fd, DEVFSDIOC_GET_PROTO_REV, &proto_rev) == -1) + msg_logger_and_die(LOG_ERR, "ioctl"); /*setup initial entries */ for (curr = initial_symlinks; curr->dest != NULL; ++curr) diff --git a/miscutils/hdparm.c b/miscutils/hdparm.c index 4bf0d45..750cb49 100644 --- a/miscutils/hdparm.c +++ b/miscutils/hdparm.c @@ -1945,7 +1945,7 @@ static void process_dev (char *devname) { no_scsi(); printf(" attempting to unregister hwif#%u\n", hwif); - bb_ioctl(fd, HDIO_UNREGISTER_HWIF,(int *)hwif,"HDIO_UNREGISTER_HWIF"); + bb_ioctl(fd, HDIO_UNREGISTER_HWIF,(int *)(unsigned long)hwif,"HDIO_UNREGISTER_HWIF"); } #endif #ifdef CONFIG_FEATURE_HDPARM_HDIO_SCAN_HWIF @@ -1977,7 +1977,7 @@ static void process_dev (char *devname) else printf("set UDMA mode to %d\n", (piomode-200)); } - bb_ioctl(fd, HDIO_SET_PIO_MODE, (int *)piomode, "HDIO_SET_PIO_MODE"); + bb_ioctl(fd, HDIO_SET_PIO_MODE, (int *)(unsigned long)piomode, "HDIO_SET_PIO_MODE"); } if (set_io32bit) { @@ -2435,7 +2435,7 @@ identify_abort: printf(" setting bus state to %d", busstate); bus_state_value(busstate); } - bb_ioctl(fd, HDIO_SET_BUSSTATE, (int *)busstate, "HDIO_SET_BUSSTATE"); + bb_ioctl(fd, HDIO_SET_BUSSTATE, (int *)(unsigned long)busstate, "HDIO_SET_BUSSTATE"); } #endif #ifdef CONFIG_FEATURE_HDPARM_HDIO_TRISTATE_HWIF |