Skip to content

Commit

Permalink
floppy: fix signed/unsigned warnings
Browse files Browse the repository at this point in the history
Ioctl cmd value is unsigned, so change normalize_ioctl

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
  • Loading branch information
Stephen Hemminger authored and Jens Axboe committed Aug 7, 2010
1 parent be1c0fb commit 21af544
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/block/floppy.c
Original file line number Diff line number Diff line change
Expand Up @@ -3337,7 +3337,7 @@ static int set_geometry(unsigned int cmd, struct floppy_struct *g,
}

/* handle obsolete ioctl's */
static int ioctl_table[] = {
static unsigned int ioctl_table[] = {
FDCLRPRM,
FDSETPRM,
FDDEFPRM,
Expand Down Expand Up @@ -3365,7 +3365,7 @@ static int ioctl_table[] = {
FDTWADDLE
};

static int normalize_ioctl(int *cmd, int *size)
static int normalize_ioctl(unsigned int *cmd, int *size)
{
int i;

Expand Down

0 comments on commit 21af544

Please sign in to comment.