summaryrefslogtreecommitdiff
path: root/sys/dev/clockctl.c
diff options
context:
space:
mode:
authormanu <manu@NetBSD.org>2002-02-25 21:16:36 +0000
committermanu <manu@NetBSD.org>2002-02-25 21:16:36 +0000
commitf8e0ee9efc62fe3ae94f5014de0332ed8940baad (patch)
tree99b22a912801d34be2f17aa8126a3fd7e65796f8 /sys/dev/clockctl.c
parent002dc4be110e526d3d57a69692684832883364c5 (diff)
Fixes a bug in argument passing to ntp_adjtime1. patch submitted by
paul@Plectere.com (see kern/15519)
Diffstat (limited to 'sys/dev/clockctl.c')
-rw-r--r--sys/dev/clockctl.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/dev/clockctl.c b/sys/dev/clockctl.c
index f3134db1dc3..8e218825054 100644
--- a/sys/dev/clockctl.c
+++ b/sys/dev/clockctl.c
@@ -1,4 +1,4 @@
-/* $NetBSD: clockctl.c,v 1.4 2001/12/09 16:10:43 manu Exp $ */
+/* $NetBSD: clockctl.c,v 1.5 2002/02/25 21:16:36 manu Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -31,7 +31,9 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: clockctl.c,v 1.4 2001/12/09 16:10:43 manu Exp $");
+__KERNEL_RCSID(0, "$NetBSD: clockctl.c,v 1.5 2002/02/25 21:16:36 manu Exp $");
+
+#include "opt_ntp.h"
#include <sys/param.h>
#include <sys/systm.h>
@@ -125,7 +127,7 @@ clockctlioctl(dev, cmd, data, flags, p)
struct clockctl_ntp_adjtime_args *args =
(struct clockctl_ntp_adjtime_args *)data;
- (void*)ntp_adjtime1(SCARG(args.uas,tp), &error);
+ (void)ntp_adjtime1(SCARG(args,uas.tp), args, &error);
return (error);
}
#endif /* NTP */