Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 21af5448 authored by Stephen Hemminger's avatar Stephen Hemminger Committed by Jens Axboe
Browse files

floppy: fix signed/unsigned warnings



Ioctl cmd value is unsigned, so change normalize_ioctl

Signed-off-by: default avatarStephen Hemminger <shemminger@vyatta.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarJens Axboe <jaxboe@fusionio.com>
parent be1c0fbf
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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,
@@ -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;