aboutsummaryrefslogtreecommitdiff
path: root/alarm-tools/alarms-show.c
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2018-06-27 22:29:13 +1200
committerDavid Phillips <david@sighup.nz>2018-06-27 22:29:13 +1200
commitce768385713db023e874db420b034dcbe94b5d48 (patch)
tree1c6fd13f89af89697942b8340bd6753f78055e11 /alarm-tools/alarms-show.c
parent79e165107f67a4df7ba71fb3266eed55155a20c4 (diff)
downloadalarmd-ce768385713db023e874db420b034dcbe94b5d48.tar.xz
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.
Diffstat (limited to 'alarm-tools/alarms-show.c')
-rw-r--r--alarm-tools/alarms-show.c4
1 files changed, 1 insertions, 3 deletions
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");