diff options
author | Daniel Fandrich <dfandrich@intrinsyc.com> | 2011-06-09 15:44:44 -0700 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-06-10 05:34:05 +0200 |
commit | 6295d273add9e72f7074d44eeee7a2c281bac975 (patch) | |
tree | 022e2b28e2e26df14cf391fb375e783a946257a3 | |
parent | f533ec876716415ed0e6ba28d13dfb6263068e82 (diff) | |
download | busybox-w32-6295d273add9e72f7074d44eeee7a2c281bac975.tar.gz busybox-w32-6295d273add9e72f7074d44eeee7a2c281bac975.tar.bz2 busybox-w32-6295d273add9e72f7074d44eeee7a2c281bac975.zip |
Replaced __u32 etc. with standard uint32_t style types
Signed-off-by: Daniel Fandrich <dfandrich@intrinsyc.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | networking/nameif.c | 28 | ||||
-rw-r--r-- | networking/tc.c | 20 |
2 files changed, 24 insertions, 24 deletions
diff --git a/networking/nameif.c b/networking/nameif.c index 9a16b0fbc..5d7e8f9a4 100644 --- a/networking/nameif.c +++ b/networking/nameif.c | |||
@@ -121,20 +121,20 @@ struct ethtool_drvinfo { | |||
121 | }; | 121 | }; |
122 | 122 | ||
123 | struct ethtool_cmd { | 123 | struct ethtool_cmd { |
124 | __u32 cmd; | 124 | uint32_t cmd; |
125 | __u32 supported; /* Features this interface supports */ | 125 | uint32_t supported; /* Features this interface supports */ |
126 | __u32 advertising; /* Features this interface advertises */ | 126 | uint32_t advertising; /* Features this interface advertises */ |
127 | __u16 speed; /* The forced speed, 10Mb, 100Mb, gigabit */ | 127 | uint16_t speed; /* The forced speed, 10Mb, 100Mb, gigabit */ |
128 | __u8 duplex; /* Duplex, half or full */ | 128 | uint8_t duplex; /* Duplex, half or full */ |
129 | __u8 port; /* Which connector port */ | 129 | uint8_t port; /* Which connector port */ |
130 | __u8 phy_address; | 130 | uint8_t phy_address; |
131 | __u8 transceiver; /* Which transceiver to use */ | 131 | uint8_t transceiver; /* Which transceiver to use */ |
132 | __u8 autoneg; /* Enable or disable autonegotiation */ | 132 | uint8_t autoneg; /* Enable or disable autonegotiation */ |
133 | __u32 maxtxpkt; /* Tx pkts before generating tx int */ | 133 | uint32_t maxtxpkt; /* Tx pkts before generating tx int */ |
134 | __u32 maxrxpkt; /* Rx pkts before generating rx int */ | 134 | uint32_t maxrxpkt; /* Rx pkts before generating rx int */ |
135 | __u16 speed_hi; | 135 | uint16_t speed_hi; |
136 | __u16 reserved2; | 136 | uint16_t reserved2; |
137 | __u32 reserved[3]; | 137 | uint32_t reserved[3]; |
138 | }; | 138 | }; |
139 | 139 | ||
140 | #define ETHTOOL_GSET 0x00000001 /* Get settings. */ | 140 | #define ETHTOOL_GSET 0x00000001 /* Get settings. */ |
diff --git a/networking/tc.c b/networking/tc.c index e9848a86b..1574353a5 100644 --- a/networking/tc.c +++ b/networking/tc.c | |||
@@ -58,10 +58,10 @@ | |||
58 | 58 | ||
59 | struct globals { | 59 | struct globals { |
60 | int filter_ifindex; | 60 | int filter_ifindex; |
61 | __u32 filter_qdisc; | 61 | uint32_t filter_qdisc; |
62 | __u32 filter_parent; | 62 | uint32_t filter_parent; |
63 | __u32 filter_prio; | 63 | uint32_t filter_prio; |
64 | __u32 filter_proto; | 64 | uint32_t filter_proto; |
65 | } FIX_ALIASING; | 65 | } FIX_ALIASING; |
66 | #define G (*(struct globals*)&bb_common_bufsiz1) | 66 | #define G (*(struct globals*)&bb_common_bufsiz1) |
67 | struct BUG_G_too_big { | 67 | struct BUG_G_too_big { |
@@ -94,8 +94,8 @@ static char* print_tc_classid(uint32_t cid) | |||
94 | } | 94 | } |
95 | 95 | ||
96 | /* Get a qdisc handle. Return 0 on success, !0 otherwise. */ | 96 | /* Get a qdisc handle. Return 0 on success, !0 otherwise. */ |
97 | static int get_qdisc_handle(__u32 *h, const char *str) { | 97 | static int get_qdisc_handle(uint32_t *h, const char *str) { |
98 | __u32 maj; | 98 | uint32_t maj; |
99 | char *p; | 99 | char *p; |
100 | 100 | ||
101 | maj = TC_H_UNSPEC; | 101 | maj = TC_H_UNSPEC; |
@@ -113,8 +113,8 @@ static int get_qdisc_handle(__u32 *h, const char *str) { | |||
113 | } | 113 | } |
114 | 114 | ||
115 | /* Get class ID. Return 0 on success, !0 otherwise. */ | 115 | /* Get class ID. Return 0 on success, !0 otherwise. */ |
116 | static int get_tc_classid(__u32 *h, const char *str) { | 116 | static int get_tc_classid(uint32_t *h, const char *str) { |
117 | __u32 maj, min; | 117 | uint32_t maj, min; |
118 | char *p; | 118 | char *p; |
119 | 119 | ||
120 | maj = TC_H_ROOT; | 120 | maj = TC_H_ROOT; |
@@ -513,7 +513,7 @@ int tc_main(int argc UNUSED_PARAM, char **argv) | |||
513 | if (obj == OBJ_filter) | 513 | if (obj == OBJ_filter) |
514 | filter_parent = TC_H_ROOT; | 514 | filter_parent = TC_H_ROOT; |
515 | } else if (arg == ARG_parent) { | 515 | } else if (arg == ARG_parent) { |
516 | __u32 handle; | 516 | uint32_t handle; |
517 | if (msg.tcm_parent) | 517 | if (msg.tcm_parent) |
518 | duparg(*argv, "parent"); | 518 | duparg(*argv, "parent"); |
519 | if (get_tc_classid(&handle, *argv)) | 519 | if (get_tc_classid(&handle, *argv)) |
@@ -530,7 +530,7 @@ int tc_main(int argc UNUSED_PARAM, char **argv) | |||
530 | *slash = '\0'; | 530 | *slash = '\0'; |
531 | */ | 531 | */ |
532 | msg.tcm_handle = get_u32(*argv, "handle"); | 532 | msg.tcm_handle = get_u32(*argv, "handle"); |
533 | /* if (slash) {if (get_u32(__u32 &mask, slash+1, NULL)) inv mask; addattr32(n, MAX_MSG, TCA_FW_MASK, mask); */ | 533 | /* if (slash) {if (get_u32(uint32_t &mask, slash+1, NULL)) inv mask; addattr32(n, MAX_MSG, TCA_FW_MASK, mask); */ |
534 | } else if (arg == ARG_classid && obj == OBJ_class && cmd == CMD_change){ | 534 | } else if (arg == ARG_classid && obj == OBJ_class && cmd == CMD_change){ |
535 | } else if (arg == ARG_pref || arg == ARG_prio) { /* filter::list */ | 535 | } else if (arg == ARG_pref || arg == ARG_prio) { /* filter::list */ |
536 | if (filter_prio) | 536 | if (filter_prio) |