From 8edfe990e819dcc1a951e9bf73c338a015cb6a6a Mon Sep 17 00:00:00 2001 From: David Phillips Date: Wed, 27 Jun 2018 23:13:13 +1200 Subject: Remove some magic constants Also removes old debug print code --- lib/libalarm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 ***********/ -- cgit v1.1