summary refs log tree commit diff
path: root/bin/wake.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-11-12 22:37:15 -0500
committerJune McEnroe <june@causal.agency>2018-11-12 22:37:15 -0500
commit302196272521b66b71f2ab75cc3c9ea335ca5fff (patch)
tree54970ff525ebfe3053351ab97e41d580afca26e7 /bin/wake.c
parentAdd \s sort binding and simplify \h and \a (diff)
downloadsrc-302196272521b66b71f2ab75cc3c9ea335ca5fff.tar.gz
src-302196272521b66b71f2ab75cc3c9ea335ca5fff.zip
Use typedefs uint and byte
Diffstat (limited to '')
-rw-r--r--bin/wake.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/wake.c b/bin/wake.c
index cb5e5386..d1d66bb6 100644
--- a/bin/wake.c
+++ b/bin/wake.c
@@ -18,13 +18,14 @@
 
 #include <err.h>
 #include <netinet/in.h>
-#include <stdint.h>
 #include <stdlib.h>
 #include <sys/socket.h>
 #include <sysexits.h>
 
+typedef unsigned char byte;
+
 #define MAC 0x04, 0x7D, 0x7B, 0xD5, 0x6A, 0x53
-static const uint8_t Payload[102] = {
+static const byte Payload[102] = {
 	0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
 	MAC, MAC, MAC, MAC, MAC, MAC, MAC, MAC,
 	MAC, MAC, MAC, MAC, MAC, MAC, MAC, MAC,