summaryrefslogtreecommitdiff
blob: 3d1f2cee9f80f093206f77387eebbb1be5b87238 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
http://bugs.gentoo.org/117333

--- isapnptools/src/isapnp_main.l
+++ isapnptools/src/isapnp_main.l
@@ -363,7 +363,6 @@
 	return 0;
 }
 
-static unsigned char serial_identifier[NUM_CARDS+1][IDENT_LEN];
 static char *boardid[NUM_CARDS+1];
 static unsigned long serno[NUM_CARDS+1];
 
--- isapnptools/src/callbacks.c
+++ isapnptools/src/callbacks.c
@@ -49,6 +49,7 @@
 #include <isapnp/callbacks.h>
 #endif
 #include <stdio.h>
+#include <stdlib.h>
 #include <errno.h>
 #include <string.h>
 
--- isapnptools/src/resource.c
+++ isapnptools/src/resource.c
@@ -12,6 +12,7 @@
    alloc_in_range_list() reordered to handle source name by P.Fox
 */
 
+#define _GNU_SOURCE
 #ifdef HAVE_CONFIG_H
 #include <config.h>
 #endif
@@ -285,7 +286,7 @@
 void allocate_pci_resources( void )
 {
    char *line = 0;
-   int lineMax = 0;
+   size_t lineMax = 0;
 
    FILE *fp = fopen( "/proc/bus/pci/devices", "rt" );
    if( !fp )