patches for menuconfig and NE2000 driver for 2.0.34

Trevor Johnson (trevor@jpj.net)
Sun, 18 Jan 1998 10:29:51 -0800 (PST)


Here are a couple of tiny patches I submitted for 2.0.33 which weren't
accepted. They get rid of some cosmetic (?) warnings which are still
present in 2.0.33. They work for me, but no one else has tried them
AFAIK.

These are the warnings:

ne.c:121: warning: `ne_probe_pci' declared `static' but never defined
lxdialog.c:123: warning: assignment of read-only location
___
Trevor Johnson

--- linux/drivers/net/ne.c-2.0.32 Sat Nov 15 00:31:51 1997
+++ linux/drivers/net/ne.c Sat Nov 15 01:29:16 1997
@@ -118,7 +118,9 @@
static unsigned char pci_irq_line = 0;

int ne_probe(struct device *dev);
+#ifdef CONFIG_PCI
static int ne_probe_pci(struct device *dev);
+#endif
static int ne_probe1(struct device *dev, int ioaddr);

static int ne_open(struct device *dev);
--- linux/scripts/lxdialog/lxdialog.c-2.0.32 Sun Aug 3 15:38:19 1997
+++ linux/scripts/lxdialog/lxdialog.c Sat Nov 15 02:05:39 1997
@@ -119,9 +119,6 @@
if (modePtr->argmax && argc - offset > modePtr->argmax)
Usage (argv[0]);

- if (title && strlen(title) > atoi(argv[offset+4])-4)
- title[atoi(argv[offset+4])-4] = 0;
-
init_dialog ();
retval = (*(modePtr->jumper)) (title, argc - offset, argv + offset);