summaryrefslogtreecommitdiff
path: root/components/netspeeds.c
diff options
context:
space:
mode:
authordrkhsh <me@drkhsh.at>2022-10-27 23:18:30 +0200
committerRafael Marçalo <raroma09@gmail.com>2022-10-28 22:21:47 +0100
commit1af8f3cebe5048b0e263303bbbcef75ecd236c4a (patch)
tree5f67b13f79a81ea824f72e58c21158d2b56a730e /components/netspeeds.c
parent19b34fe6e86710347fbbe7c996eca3f6b0a3e56f (diff)
radical re-formatting 0/3: Alphabetic headers
Except stated otherwise in comment. Fixes coding style. Formatting commits suck, incoherent coding style sucks more. https://suckless.org/coding_style/
Diffstat (limited to 'components/netspeeds.c')
-rw-r--r--components/netspeeds.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/netspeeds.c b/components/netspeeds.c
index f7bac2e..0f92368 100644
--- a/components/netspeeds.c
+++ b/components/netspeeds.c
@@ -1,9 +1,9 @@
/* See LICENSE file for copyright and license details. */
-#include <stdio.h>
#include <limits.h>
+#include <stdio.h>
-#include "../util.h"
#include "../slstatus.h"
+#include "../util.h"
#if defined(__linux__)
#include <stdint.h>
@@ -60,11 +60,11 @@
1024);
}
#elif defined(__OpenBSD__) | defined(__FreeBSD__)
- #include <string.h>
#include <ifaddrs.h>
+ #include <net/if.h>
+ #include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
- #include <net/if.h>
const char *
netspeed_rx(const char *interface)