summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/hoststated/hoststated.c6
-rw-r--r--usr.sbin/relayd/relayd.c6
2 files changed, 4 insertions, 8 deletions
diff --git a/usr.sbin/hoststated/hoststated.c b/usr.sbin/hoststated/hoststated.c
index 04deceefeda..eef5ba3901b 100644
--- a/usr.sbin/hoststated/hoststated.c
+++ b/usr.sbin/hoststated/hoststated.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hoststated.c,v 1.20 2007/02/26 16:10:24 reyk Exp $ */
+/* $OpenBSD: hoststated.c,v 1.21 2007/03/17 22:54:49 reyk Exp $ */
/*
* Copyright (c) 2006 Pierre-Yves Ritschard <pyr@spootnik.org>
@@ -506,11 +506,9 @@ session_find(struct hoststated *env, objid_t id)
struct session *con;
TAILQ_FOREACH(rlay, &env->relays, entry)
- TAILQ_FOREACH(con, &rlay->sessions, entry) {
- log_debug("session_find: %d : %d", id, con->id);
+ TAILQ_FOREACH(con, &rlay->sessions, entry)
if (con->id == id)
return (con);
- }
return (NULL);
}
diff --git a/usr.sbin/relayd/relayd.c b/usr.sbin/relayd/relayd.c
index f84b52eeb18..d7c43004a41 100644
--- a/usr.sbin/relayd/relayd.c
+++ b/usr.sbin/relayd/relayd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: relayd.c,v 1.20 2007/02/26 16:10:24 reyk Exp $ */
+/* $OpenBSD: relayd.c,v 1.21 2007/03/17 22:54:49 reyk Exp $ */
/*
* Copyright (c) 2006 Pierre-Yves Ritschard <pyr@spootnik.org>
@@ -506,11 +506,9 @@ session_find(struct hoststated *env, objid_t id)
struct session *con;
TAILQ_FOREACH(rlay, &env->relays, entry)
- TAILQ_FOREACH(con, &rlay->sessions, entry) {
- log_debug("session_find: %d : %d", id, con->id);
+ TAILQ_FOREACH(con, &rlay->sessions, entry)
if (con->id == id)
return (con);
- }
return (NULL);
}