[patch] Wrong prototypes and a typo in pre6-1

From: Arjan van de Ven (arjan@fenrus.demon.nl)
Date: Thu Apr 13 2000 - 12:23:33 EST


Hi,

The patch below fixes two prototypes to actually resemble the C
implementation, and fixes a typo where "ints" was used, where "integers"
was intended. (the line seems to have been copied from an other function,
one that actually an "ints" array instead of an "integers" array).

Greetings,
   Arjan van de Ven

--- linux/drivers/block/xd.h.org Thu Apr 13 19:13:40 2000
+++ linux/drivers/block/xd.h Thu Apr 13 19:17:22 2000
@@ -103,9 +103,9 @@
         const char *name;
 } XD_SIGNATURE;
 
-void xd_setup (char *command,int *integers);
+int xd_setup (char *);
 #ifndef MODULE
-void xd_manual_geo_init (char *command,int *integers);
+int xd_manual_geo_init (char *command);
 #endif /* MODULE */
 static u_char xd_detect (u_char *controller, unsigned int *address);
 static u_char xd_initdrives (void (*init_drive)(u_char drive));
--- linux/drivers/block/xd.c.org Thu Apr 13 19:17:46 2000
+++ linux/drivers/block/xd.c Thu Apr 13 19:18:00 2000
@@ -1190,7 +1190,7 @@
 {
         int i, integers[1 + 3*XD_MAXDRIVES];
 
- get_options (str, ARRAY_SIZE (ints), ints);
+ get_options (str, ARRAY_SIZE (integers), integers);
         if (integers[0]%3 != 0) {
                 printk("xd: incorrect number of parameters for xd_geo\n");
                 return 1;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Apr 15 2000 - 21:00:21 EST