diff options
author | Pierre-Yves Ritschard <pyr@cvs.openbsd.org> | 2007-12-08 20:36:37 +0000 |
---|---|---|
committer | Pierre-Yves Ritschard <pyr@cvs.openbsd.org> | 2007-12-08 20:36:37 +0000 |
commit | c1f6beb8faeaace32b59af6d9b0955316f243bdb (patch) | |
tree | ca2dfc1c851e0603150fcd61c1a6d127c1462c4f /usr.sbin/relayd/control.c | |
parent | 870f679c22c06acd39bf5f1c3d8db9758e4c0e93 (diff) |
Rename everything which reffered to services refer to rdr for internals
(for instance: rename struct service to struct rdr), refer to redirects
otherwise (hoststatectl output).
ok reyk@
Diffstat (limited to 'usr.sbin/relayd/control.c')
-rw-r--r-- | usr.sbin/relayd/control.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/relayd/control.c b/usr.sbin/relayd/control.c index e8214b4e72d..d45706740f7 100644 --- a/usr.sbin/relayd/control.c +++ b/usr.sbin/relayd/control.c @@ -1,4 +1,4 @@ -/* $OpenBSD: control.c,v 1.22 2007/12/07 17:17:00 reyk Exp $ */ +/* $OpenBSD: control.c,v 1.23 2007/12/08 20:36:36 pyr Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -232,11 +232,11 @@ control_dispatch_imsg(int fd, short event, void *arg) case IMSG_CTL_SESSION: show_sessions(c); break; - case IMSG_CTL_SERVICE_DISABLE: + case IMSG_CTL_RDR_DISABLE: if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(id)) fatalx("invalid imsg header len"); memcpy(&id, imsg.data, sizeof(id)); - if (disable_service(c, &id)) + if (disable_rdr(c, &id)) imsg_compose(&c->ibuf, IMSG_CTL_FAIL, 0, 0, -1, NULL, 0); else { @@ -246,11 +246,11 @@ control_dispatch_imsg(int fd, short event, void *arg) NULL, 0); } break; - case IMSG_CTL_SERVICE_ENABLE: + case IMSG_CTL_RDR_ENABLE: if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(id)) fatalx("invalid imsg header len"); memcpy(&id, imsg.data, sizeof(id)); - if (enable_service(c, &id)) + if (enable_rdr(c, &id)) imsg_compose(&c->ibuf, IMSG_CTL_FAIL, 0, 0, -1, NULL, 0); else { |