diff options
author | Pierre-Yves Ritschard <pyr@cvs.openbsd.org> | 2007-06-12 18:09:01 +0000 |
---|---|---|
committer | Pierre-Yves Ritschard <pyr@cvs.openbsd.org> | 2007-06-12 18:09:01 +0000 |
commit | 9764a020e5e811754bd7744aea5845104d68a822 (patch) | |
tree | fb5be8ae1a98f04a67d9f7886d4b59fa64ace5fd /usr.sbin/relayctl/relayctl.c | |
parent | 5b49a7178c68726ae3a4d290e2adeee3fc38d504 (diff) |
reflect msf's changes to the imsg framework in hoststated.
Diffstat (limited to 'usr.sbin/relayctl/relayctl.c')
-rw-r--r-- | usr.sbin/relayctl/relayctl.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/usr.sbin/relayctl/relayctl.c b/usr.sbin/relayctl/relayctl.c index d4663156688..0dfbeb7eadf 100644 --- a/usr.sbin/relayctl/relayctl.c +++ b/usr.sbin/relayctl/relayctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: relayctl.c,v 1.19 2007/05/29 23:19:18 pyr Exp $ */ +/* $OpenBSD: relayctl.c,v 1.20 2007/06/12 18:09:00 pyr Exp $ */ /* * Copyright (c) 2006 Pierre-Yves Ritschard <pyr@spootnik.org> @@ -142,42 +142,42 @@ main(int argc, char *argv[]) case SHOW_SUM: case SHOW_HOSTS: case SHOW_RELAYS: - imsg_compose(ibuf, IMSG_CTL_SHOW_SUM, 0, 0, NULL, 0); + imsg_compose(ibuf, IMSG_CTL_SHOW_SUM, 0, 0, -1, NULL, 0); printf("Type\t%4s\t%-24s\t%-7s\tStatus\n", "Id", "Name", "Avlblty"); break; case SERV_ENABLE: - imsg_compose(ibuf, IMSG_CTL_SERVICE_ENABLE, 0, 0, + imsg_compose(ibuf, IMSG_CTL_SERVICE_ENABLE, 0, 0, -1, &res->id, sizeof(res->id)); break; case SERV_DISABLE: - imsg_compose(ibuf, IMSG_CTL_SERVICE_DISABLE, 0, 0, + imsg_compose(ibuf, IMSG_CTL_SERVICE_DISABLE, 0, 0, -1, &res->id, sizeof(res->id)); break; case TABLE_ENABLE: - imsg_compose(ibuf, IMSG_CTL_TABLE_ENABLE, 0, 0, + imsg_compose(ibuf, IMSG_CTL_TABLE_ENABLE, 0, 0, -1, &res->id, sizeof(res->id)); break; case TABLE_DISABLE: - imsg_compose(ibuf, IMSG_CTL_TABLE_DISABLE, 0, 0, + imsg_compose(ibuf, IMSG_CTL_TABLE_DISABLE, 0, 0, -1, &res->id, sizeof(res->id)); break; case HOST_ENABLE: - imsg_compose(ibuf, IMSG_CTL_HOST_ENABLE, 0, 0, + imsg_compose(ibuf, IMSG_CTL_HOST_ENABLE, 0, 0, -1, &res->id, sizeof(res->id)); break; case HOST_DISABLE: - imsg_compose(ibuf, IMSG_CTL_HOST_DISABLE, 0, 0, + imsg_compose(ibuf, IMSG_CTL_HOST_DISABLE, 0, 0, -1, &res->id, sizeof(res->id)); break; case SHUTDOWN: - imsg_compose(ibuf, IMSG_CTL_SHUTDOWN, 0, 0, NULL, 0); + imsg_compose(ibuf, IMSG_CTL_SHUTDOWN, 0, 0, -1, NULL, 0); break; case RELOAD: - imsg_compose(ibuf, IMSG_CTL_RELOAD, 0, 0, NULL, 0); + imsg_compose(ibuf, IMSG_CTL_RELOAD, 0, 0, -1, NULL, 0); break; case MONITOR: - imsg_compose(ibuf, IMSG_CTL_NOTIFY, 0, 0, NULL, 0); + imsg_compose(ibuf, IMSG_CTL_NOTIFY, 0, 0, -1, NULL, 0); break; } |