From ce768385713db023e874db420b034dcbe94b5d48 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Wed, 27 Jun 2018 22:29:13 +1200 Subject: Remove old byte-order switching code It's safe enough to assume that UNIX domain sockets imply both ends of the socket have the same represenatations. Anyone doing hackery with forwarding/proxying UNIX domain sockets between systems should know better. --- alarm-tools/alarms-show.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'alarm-tools/alarms-show.c') diff --git a/alarm-tools/alarms-show.c b/alarm-tools/alarms-show.c index 8418ee8..938401e 100644 --- a/alarm-tools/alarms-show.c +++ b/alarm-tools/alarms-show.c @@ -21,7 +21,7 @@ int dump_alarms(int sock) char buffer[128]; pid_t owner = 0; - packet_type = htonl(ALARMD_PACKET_TYPE_QUERY); + packet_type = ALARMD_PACKET_TYPE_QUERY; if (send(sock, &packet_type, sizeof(packet_type), 0) != sizeof(packet_type)) { perror("send"); @@ -37,8 +37,6 @@ int dump_alarms(int sock) return 1; } - count = ntohl(count); - printf("Alarms\n" "------\n"); -- cgit v1.1