diff options
author | June McEnroe <june@causal.agency> | 2018-11-12 22:37:15 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2018-11-12 22:37:15 -0500 |
commit | 302196272521b66b71f2ab75cc3c9ea335ca5fff (patch) | |
tree | 54970ff525ebfe3053351ab97e41d580afca26e7 /bin/wake.c | |
parent | Add \s sort binding and simplify \h and \a (diff) | |
download | src-302196272521b66b71f2ab75cc3c9ea335ca5fff.tar.gz src-302196272521b66b71f2ab75cc3c9ea335ca5fff.zip |
Use typedefs uint and byte
Diffstat (limited to '')
-rw-r--r-- | bin/wake.c | 5 |
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, |