summaryrefslogtreecommitdiff
path: root/link.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2017-09-13 12:21:45 +0200
committerTobias Klauser <tklauser@distanz.ch>2017-09-13 12:21:45 +0200
commitc9a22110551ecc364c43b490fcbcd855dac1f744 (patch)
treeb2ba69617ed73f58a75d434240837d0a70f1d322 /link.c
parentf57a0b54ab1b5b2179d7d47f9b526638e8647fe8 (diff)
link: use uint32_t instead of u32
Use type uint32_t instead of u32 (which is typedef'ed to uint32_t in built_in.h) in order to avoid confusion wrt. kernel-/user-space types. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'link.c')
-rw-r--r--link.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/link.c b/link.c
index 72f513f..74cc759 100644
--- a/link.c
+++ b/link.c
@@ -9,9 +9,10 @@
#include "sock.h"
#include "str.h"
-u32 wireless_bitrate(const char *ifname)
+uint32_t wireless_bitrate(const char *ifname)
{
- int sock, ret, rate_in_mbit;
+ int sock, ret;
+ uint32_t rate_in_mbit;
struct iwreq iwr;
sock = af_socket(AF_INET);
@@ -79,9 +80,10 @@ int wireless_rangemax_sigqual(const char *ifname)
return sigqual;
}
-u32 ethtool_bitrate(const char *ifname)
+uint32_t ethtool_bitrate(const char *ifname)
{
- int ret, sock, bitrate;
+ int ret, sock;
+ uint32_t bitrate;
struct ifreq ifr;
struct ethtool_cmd ecmd;