patch-2.4.19 linux-2.4.19/drivers/pci/gen-devlist.c
Next file: linux-2.4.19/drivers/pci/names.c
Previous file: linux-2.4.19/drivers/pci/Makefile
Back to the patch index
Back to the overall index
- Lines: 24
- Date:
Fri Aug 2 17:39:44 2002
- Orig file:
linux-2.4.18/drivers/pci/gen-devlist.c
- Orig date:
Sun Nov 4 09:31:58 2001
diff -urN linux-2.4.18/drivers/pci/gen-devlist.c linux-2.4.19/drivers/pci/gen-devlist.c
@@ -1,7 +1,7 @@
/*
* Generate devlist.h and classlist.h from the PCI ID file.
*
- * (c) 1999--2000 Martin Mares <mj@ucw.cz>
+ * (c) 1999--2002 Martin Mares <mj@ucw.cz>
*/
#include <stdio.h>
@@ -15,8 +15,13 @@
while (*c) {
if (*c == '"')
fprintf(f, "\\\"");
- else
+ else {
fputc(*c, f);
+ if (*c == '?' && c[1] == '?') {
+ /* Avoid trigraphs */
+ fprintf(f, "\" \"");
+ }
+ }
c++;
}
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)