aboutsummaryrefslogtreecommitdiff
path: root/miscutils
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils')
-rw-r--r--miscutils/eject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/eject.c b/miscutils/eject.c
index 42e071941..91cf98f5f 100644
--- a/miscutils/eject.c
+++ b/miscutils/eject.c
@@ -57,7 +57,7 @@ static void eject_scsi(const char *dev)
io_hdr.timeout = 2000;
for (i = 0; i < 3; i++) {
- io_hdr.cmdp = (char*)sg_commands[i];
+ io_hdr.cmdp = (void *)sg_commands[i];
ioctl_or_perror_and_die(dev_fd, SG_IO, (void *)&io_hdr, "%s", dev);
}