[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Patch] debian-installer ... ethdetect.c



Just a little patch. It enables TEST compiling.

Index: ethdetect.c
===================================================================
RCS file: /cvs/debian-boot/debian-installer/tools/ddetect/ethdetect.c,v
retrieving revision 1.10
diff -u -r1.10 ethdetect.c
--- ethdetect.c 2002/05/05 13:40:18     1.10
+++ ethdetect.c 2002/05/07 10:53:25
@@ -159,11 +159,13 @@
 int
 main (int argc, char *argv[])
 {
-  char *modulename;
-
-  if ((module = ethdetect_module_detect (0)) != NULL)
-    printf (stderr, "%s\n", module);
-
+  struct ethernet_info *ethernet = (struct ethernet_info *) NULL;
+  
+  ethernet = ethdetect_detect(0);
+  for (; ethernet; ethernet = ethernet->next) {
+    fprintf(stderr, "%s\n", ethernet->module);
+  };
+  return (0);
 }
 
 #endif


-- 
Thomas Poindessous
thomas@poindessous.com



-- 
To UNSUBSCRIBE, email to debian-boot-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: