diff options
author | 2012-08-20 17:32:37 +0000 | |
---|---|---|
committer | 2012-08-20 17:32:37 +0000 | |
commit | 595736f2d7b506f8cde93c921d5391c2f68e6d01 (patch) | |
tree | b6a11b46180856794bda638d66abd610585825ef | |
parent | MISs work on Oberon as well. (diff) | |
download | wireguard-openbsd-595736f2d7b506f8cde93c921d5391c2f68e6d01.tar.xz wireguard-openbsd-595736f2d7b506f8cde93c921d5391c2f68e6d01.zip |
start iterating from min, not root.
ok gilles@
-rw-r--r-- | usr.sbin/smtpd/stat_ramstat.c | 2 |
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); |