OSDN Git Service

Bit-fields have to have type _Bool, signed int, or unsigned int.
authorMatthias Hopf <mhopf@suse.de>
Tue, 23 Oct 2007 13:19:36 +0000 (15:19 +0200)
committerMatthias Hopf <mhopf@suse.de>
Tue, 23 Oct 2007 13:19:36 +0000 (15:19 +0200)
ISO/IEC 9899:1999 (E), 6.7.2.1 Structure and union specifiers, (4).
_Bool is only supported for C99 and up, and 1-bit signed types don't make
sense -> unsigned int.

include/pciaccess.h

index 4bd3672..dcc0122 100644 (file)
@@ -368,13 +368,13 @@ struct pci_agp_info {
      */
     uint8_t    rates;
 
-    uint8_t    fast_writes:1;       /**< Are fast-writes supported? */
-    uint8_t    addr64:1;
-    uint8_t    htrans:1;
-    uint8_t    gart64:1;
-    uint8_t    coherent:1;
-    uint8_t    sideband:1;          /**< Is side-band addressing supported? */
-    uint8_t    isochronus:1;
+    unsigned int    fast_writes:1;  /**< Are fast-writes supported? */
+    unsigned int    addr64:1;
+    unsigned int    htrans:1;
+    unsigned int    gart64:1;
+    unsigned int    coherent:1;
+    unsigned int    sideband:1;     /**< Is side-band addressing supported? */
+    unsigned int    isochronus:1;
 
     uint8_t    async_req_size;
     uint8_t    calibration_cycle_timing;