summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorEric Faurot <eric@cvs.openbsd.org>2012-08-20 17:32:38 +0000
committerEric Faurot <eric@cvs.openbsd.org>2012-08-20 17:32:38 +0000
commit6470037a50f4e33c8e887f504728a9e6fe8d9964 (patch)
treead6dc7d3bed6b0571c0b48152f6a830e1c3401e3 /usr.sbin
parentfc101eca5afe6a052e1764fb0b742288889fd581 (diff)
start iterating from min, not root.
ok gilles@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/smtpd/stat_ramstat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/smtpd/stat_ramstat.c b/usr.sbin/smtpd/stat_ramstat.c
index 996f8ff8a24..e5ff4e9d150 100644
--- a/usr.sbin/smtpd/stat_ramstat.c
+++ b/usr.sbin/smtpd/stat_ramstat.c
@@ -143,7 +143,7 @@ ramstat_iter(void **iter, char **name, size_t *val)
return 0;
if (*iter == NULL)
- np = RB_ROOT(&stats);
+ np = RB_MIN(stats_tree, &stats);
else
np = RB_NEXT(stats_tree, &stats, *iter);