patch-2.4.1 linux/drivers/net/depca.c
Next file: linux/drivers/net/dmfe.c
Previous file: linux/drivers/net/Makefile
Back to the patch index
Back to the overall index
- Lines: 11
- Date:
Mon Jan 8 09:09:36 2001
- Orig file:
v2.4.0/linux/drivers/net/depca.c
- Orig date:
Mon Oct 23 15:51:36 2000
diff -u --recursive --new-file v2.4.0/linux/drivers/net/depca.c linux/drivers/net/depca.c
@@ -1817,7 +1817,9 @@
ManCode[5]='\0';
for (i=0;(*signatures[i] != '\0') && (*name == '\0');i++) {
- if (strstr(ManCode, signatures[i]) != NULL) {
+ const char * volatile lhs = ManCode;
+ const char * volatile rhs = signatures[i]; /* egcs-1.1.2 bug */
+ if (strstr(lhs, rhs) != NULL) {
strcpy(name,ManCode);
status = 1;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)