Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern C99ify initialization of dummy_timecounter.



details:   https://anonhg.NetBSD.org/src/rev/3954670c4634
branches:  trunk
changeset: 357247:3954670c4634
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Thu Nov 02 15:28:23 2017 +0000

description:
C99ify initialization of dummy_timecounter.

diffstat:

 sys/kern/kern_tc.c |  11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diffs (32 lines):

diff -r c405b96dd2f0 -r 3954670c4634 sys/kern/kern_tc.c
--- a/sys/kern/kern_tc.c        Thu Nov 02 09:42:44 2017 +0000
+++ b/sys/kern/kern_tc.c        Thu Nov 02 15:28:23 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_tc.c,v 1.47 2017/06/09 01:16:33 chs Exp $ */
+/* $NetBSD: kern_tc.c,v 1.48 2017/11/02 15:28:23 riastradh Exp $ */
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -40,7 +40,7 @@
 
 #include <sys/cdefs.h>
 /* __FBSDID("$FreeBSD: src/sys/kern/kern_tc.c,v 1.166 2005/09/19 22:16:31 andre Exp $"); */
-__KERNEL_RCSID(0, "$NetBSD: kern_tc.c,v 1.47 2017/06/09 01:16:33 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_tc.c,v 1.48 2017/11/02 15:28:23 riastradh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ntp.h"
@@ -84,7 +84,12 @@
 }
 
 static struct timecounter dummy_timecounter = {
-       dummy_get_timecount, 0, ~0u, 1000000, "dummy", -1000000, NULL, NULL,
+       .tc_get_timecount       = dummy_get_timecount,
+       .tc_counter_mask        = ~0u,
+       .tc_frequency           = 1000000,
+       .tc_name                = "dummy",
+       .tc_quality             = -1000000,
+       .tc_priv                = NULL,
 };
 
 struct timehands {



Home | Main Index | Thread Index | Old Index