提交 21af5448 编写于 作者: S Stephen Hemminger 提交者: Jens Axboe

floppy: fix signed/unsigned warnings

Ioctl cmd value is unsigned, so change normalize_ioctl
Signed-off-by: NStephen Hemminger <shemminger@vyatta.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NJens Axboe <jaxboe@fusionio.com>
上级 be1c0fbf
...@@ -3337,7 +3337,7 @@ static int set_geometry(unsigned int cmd, struct floppy_struct *g, ...@@ -3337,7 +3337,7 @@ static int set_geometry(unsigned int cmd, struct floppy_struct *g,
} }
/* handle obsolete ioctl's */ /* handle obsolete ioctl's */
static int ioctl_table[] = { static unsigned int ioctl_table[] = {
FDCLRPRM, FDCLRPRM,
FDSETPRM, FDSETPRM,
FDDEFPRM, FDDEFPRM,
...@@ -3365,7 +3365,7 @@ static int ioctl_table[] = { ...@@ -3365,7 +3365,7 @@ static int ioctl_table[] = {
FDTWADDLE FDTWADDLE
}; };
static int normalize_ioctl(int *cmd, int *size) static int normalize_ioctl(unsigned int *cmd, int *size)
{ {
int i; int i;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册