summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--link.c10
-rw-r--r--link.h4
2 files changed, 8 insertions, 6 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;
diff --git a/link.h b/link.h
index f201e8c..621a5bb 100644
--- a/link.h
+++ b/link.h
@@ -14,8 +14,8 @@
extern int wireless_sigqual(const char *ifname, struct iw_statistics *stats);
extern int wireless_rangemax_sigqual(const char *ifname);
-extern u32 wireless_bitrate(const char *ifname);
-extern u32 ethtool_bitrate(const char *ifname);
+extern uint32_t wireless_bitrate(const char *ifname);
+extern uint32_t ethtool_bitrate(const char *ifname);
extern int ethtool_drvinf(const char *ifname, struct ethtool_drvinfo *drvinf);
extern int ethtool_link(const char *ifname);