fix ioctl warning