Replace C types in declarations
parent
2fa9cf51ff
commit
c60daa255f
|
@ -1710,8 +1710,8 @@ pub const SIOCGIFINDEX = 0x8933;
|
||||||
pub const IFNAMESIZE = 16;
|
pub const IFNAMESIZE = 16;
|
||||||
|
|
||||||
pub const ifmap = extern struct {
|
pub const ifmap = extern struct {
|
||||||
mem_start: c_ulong,
|
mem_start: u32,
|
||||||
mem_end: c_ulong,
|
mem_end: u32,
|
||||||
base_addr: u16,
|
base_addr: u16,
|
||||||
irq: u8,
|
irq: u8,
|
||||||
dma: u8,
|
dma: u8,
|
||||||
|
@ -1734,6 +1734,6 @@ pub const ifreq = extern struct {
|
||||||
ifru_map: ifmap,
|
ifru_map: ifmap,
|
||||||
ifru_slave: [IFNAMESIZE]u8,
|
ifru_slave: [IFNAMESIZE]u8,
|
||||||
ifru_newname: [IFNAMESIZE]u8,
|
ifru_newname: [IFNAMESIZE]u8,
|
||||||
ifru_data: [*c]u8,
|
ifru_data: ?[*]u8,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue