On Wed, Oct 20, 2010 at 02:45, Brian Norris wrote: > - ret = ioctl(fd, MTDFILEMODE, (void *) MTD_MODE_RAW); > + ret = ioctl(fd, MTDFILEMODE, (void *)MTD_MODE_RAW); i'd just drop the cast completely. ioctl() is a vararg func so there is no need to tweak the type. -mike