diff options
author | David Phillips <david@sighup.nz> | 2018-06-27 23:13:13 +1200 |
---|---|---|
committer | David Phillips <david@sighup.nz> | 2018-06-27 23:13:13 +1200 |
commit | 8edfe990e819dcc1a951e9bf73c338a015cb6a6a (patch) | |
tree | 941c0673144c2ded9a99fcb90117bd27b7d5e5f1 /lib | |
parent | 48a94012fd2785d500c17e1f6f2315a13b2a0a2f (diff) | |
download | alarmd-8edfe990e819dcc1a951e9bf73c338a015cb6a6a.tar.xz |
Remove some magic constants
Also removes old debug print code
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libalarm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalarm.c b/lib/libalarm.c index 9dc9ae0..20448aa 100644 --- a/lib/libalarm.c +++ b/lib/libalarm.c @@ -58,7 +58,7 @@ int send_string(int sock, char *buffer) int send_packet_uuid(int sock, uint32_t packet_type, uuid_t uuid) { return (send(sock, &packet_type, sizeof(packet_type), 0) != sizeof(packet_type) - || send(sock, uuid, 16, 0) != 16); + || send(sock, uuid, sizeof(uuid_t), 0) != 16); } /** End helper functions ***********/ |