From a3fd355593f7ab9ae5c6d57ec69ef3f5a2f8cb9a Mon Sep 17 00:00:00 2001 From: Francois Pons Date: Wed, 3 Jul 2002 13:36:16 +0000 Subject: fixed static definition when non static declaration (gcc limitation). added conditional code around network detection. --- mdk-stage1/probing.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mdk-stage1') diff --git a/mdk-stage1/probing.c b/mdk-stage1/probing.c index 6dd678ce0..04afc9ce0 100644 --- a/mdk-stage1/probing.c +++ b/mdk-stage1/probing.c @@ -120,7 +120,7 @@ char * get_net_intf_description(char * intf_name) } #endif -static void probe_that_type(enum driver_type type) +void probe_that_type(enum driver_type type) { if (IS_EXPERT) { ask_insmod(type); @@ -272,6 +272,7 @@ static void probe_that_type(enum driver_type type) for (i = 0; i < len; i++) { if (usbdb[i].vendor == vendor && usbdb[i].id == id) { log_message("USB: device %04x %04x is \"%s\" (%s)", vendor, id, usbdb[i].name, usbdb[i].module); +#ifndef DISABLE_NETWORK if (type == NETWORK_DEVICES) { stg1_info_message("About to load driver for usb network device:\n \n%s", usbdb[i].name); prepare_intf_descr(usbdb[i].name); @@ -279,6 +280,7 @@ static void probe_that_type(enum driver_type type) if (intf_descr_for_discover) /* for modules providing more than one net intf */ net_discovered_interface(NULL); } +#endif } } -- cgit v1.2.1