lkml.org 
[lkml]   [2010]   [Jun]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH 6/8] floppy: fix signed/unsigned warnings
Ioctl cmd value is unsigned, so change normalize_ioctl

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>

--- a/drivers/block/floppy.c 2010-06-08 23:08:29.136934127 -0700
+++ b/drivers/block/floppy.c 2010-06-08 23:08:32.697067816 -0700
@@ -3337,7 +3337,7 @@ static int set_geometry(unsigned int cmd
}

/* 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;




\
 
 \ /
  Last update: 2010-06-09 20:57    [from the cache]
©2003-2011 Jasper Spaans