diff options
author | bde <bde@FreeBSD.org> | 1999-07-24 20:21:10 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1999-07-24 20:21:10 +0000 |
commit | b73215cf1c27412622b1385adbc152d35ab34400 (patch) | |
tree | ad646a3271fdb779f2d7fa432bf210b293876131 /sys/kern/kern_clock.c | |
parent | db9a4855278907b8c437ee581f33947262f109c6 (diff) | |
download | FreeBSD-src-b73215cf1c27412622b1385adbc152d35ab34400.zip FreeBSD-src-b73215cf1c27412622b1385adbc152d35ab34400.tar.gz |
Oops, the previous commit only worked in the one case it was tested for.
Diffstat (limited to 'sys/kern/kern_clock.c')
-rw-r--r-- | sys/kern/kern_clock.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/kern_clock.c b/sys/kern/kern_clock.c index de15f18..1830549 100644 --- a/sys/kern/kern_clock.c +++ b/sys/kern/kern_clock.c @@ -37,7 +37,7 @@ * SUCH DAMAGE. * * @(#)kern_clock.c 8.5 (Berkeley) 1/21/94 - * $Id: kern_clock.c,v 1.95 1999/07/18 01:35:26 jdp Exp $ + * $Id: kern_clock.c,v 1.96 1999/07/18 15:07:18 bde Exp $ */ #include "opt_ntp.h" @@ -843,7 +843,8 @@ sysctl_kern_timecounter_hardware SYSCTL_HANDLER_ARGS error = sysctl_handle_string(oidp, &newname[0], sizeof(newname), req); if (error == 0 && req->newptr != NULL && strcmp(newname, tc->tc_name) != 0) { - for (newtc = tc->tc_avail; newtc != tc; newtc = tc->tc_avail) { + for (newtc = tc->tc_avail; newtc != tc; + newtc = newtc->tc_avail) { if (strcmp(newname, newtc->tc_name) == 0) { /* Warm up new timecounter. */ (void)newtc->tc_get_timecount(newtc); |