diff options
author | Pierre-Yves Ritschard <pyr@cvs.openbsd.org> | 2007-05-29 00:21:11 +0000 |
---|---|---|
committer | Pierre-Yves Ritschard <pyr@cvs.openbsd.org> | 2007-05-29 00:21:11 +0000 |
commit | 3a6280ede9c3d810e07d583d2dd32bb660be6295 (patch) | |
tree | f86c12b4bb5163f82b5da09a87bc3368df2fb49d /usr.sbin/relayd/relayd.c | |
parent | c5f0f50dae49c13e66ed1ad97606a14435d0c1d9 (diff) |
move struct relay to the runtime + config scheme.
this time around, include hoststatectl changes too.
Diffstat (limited to 'usr.sbin/relayd/relayd.c')
-rw-r--r-- | usr.sbin/relayd/relayd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/relayd/relayd.c b/usr.sbin/relayd/relayd.c index a9743252d37..94a938c74ea 100644 --- a/usr.sbin/relayd/relayd.c +++ b/usr.sbin/relayd/relayd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: relayd.c,v 1.24 2007/05/28 22:11:33 pyr Exp $ */ +/* $OpenBSD: relayd.c,v 1.25 2007/05/29 00:21:10 pyr Exp $ */ /* * Copyright (c) 2006 Pierre-Yves Ritschard <pyr@spootnik.org> @@ -596,7 +596,7 @@ relay_find(struct hoststated *env, objid_t id) struct relay *rlay; TAILQ_FOREACH(rlay, &env->relays, entry) - if (rlay->id == id) + if (rlay->conf.id == id) return (rlay); return (NULL); } @@ -655,7 +655,7 @@ relay_findbyname(struct hoststated *env, const char *name) struct relay *rlay; TAILQ_FOREACH(rlay, &env->relays, entry) - if (strcmp(rlay->name, name) == 0) + if (strcmp(rlay->conf.name, name) == 0) return (rlay); return (NULL); } |