lkml.org 
[lkml]   [1998]   [Mar]   [2]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
DateMon, 2 Mar 1998 08:54:52 +0100 (CET)
FromNiels Kristian Bech Jensen <>
Subject[2.1.89-pre5] patch to get rid of floppy.c warnings.
Hi,
This patch gets rid of the warnings you get when compiling floppy.c

--- linux-2.1.89-pre5/drivers/block/floppy.c	Mon Mar  2 07:21:22 1998
+++ linux/drivers/block/floppy.c	Mon Mar  2 08:29:21 1998
@@ -2472,7 +2472,8 @@
  * does not work with MT, hence we can only transfer one head at
  * a time
  */
-static int virtualdmabug_workaround() {
+static void virtualdmabug_workaround(void)
+{
 	int hard_sectors, end_sector;
 	if(CT(COMMAND) == FD_WRITE) {
 		COMMAND &= ~0x80; /* switch off multiple track mode */
@@ -2483,7 +2484,7 @@
 		if(end_sector > SECT_PER_TRACK) {
 			printk("too many sectors %d > %d\n", 
 				   end_sector, SECT_PER_TRACK);
-			return 0;
+			return;
 		}
 #endif
 		SECT_PER_TRACK = end_sector; /* make sure SECT_PER_TRACK points

--
Med venlig hilsen / Best regards
                                                              nkbj@image.dk
Niels Kristian Bech Jensen                       http://www.image.dk/~nkbj/


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:41    [from the cache]
©2003-2008