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 | 05b0eb217dbec0d94b3faf064dfef2253fff3393 (patch) | |
tree | 83091307cc65f0d3dc5fa9094482ce39c7589128 /bin/wake.c | |
parent | Add \s sort binding and simplify \h and \a (diff) | |
download | src-05b0eb217dbec0d94b3faf064dfef2253fff3393.tar.gz src-05b0eb217dbec0d94b3faf064dfef2253fff3393.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 288dedca..bd426c47 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, |