Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/cpuctl/arch avoid dummy structure definition, inclu...
details: https://anonhg.NetBSD.org/src/rev/417b51b68a0a
branches: trunk
changeset: 782134:417b51b68a0a
user: drochner <drochner%NetBSD.org@localhost>
date: Wed Oct 17 20:22:15 2012 +0000
description:
avoid dummy structure definition, include a system header instead,
looks just cleaner
diffstat:
usr.sbin/cpuctl/arch/noarch.c | 11 ++++-------
1 files changed, 4 insertions(+), 7 deletions(-)
diffs (31 lines):
diff -r 633654abbd73 -r 417b51b68a0a usr.sbin/cpuctl/arch/noarch.c
--- a/usr.sbin/cpuctl/arch/noarch.c Wed Oct 17 20:21:26 2012 +0000
+++ b/usr.sbin/cpuctl/arch/noarch.c Wed Oct 17 20:22:15 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: noarch.c,v 1.4 2012/08/31 07:27:27 drochner Exp $ */
+/* $NetBSD: noarch.c,v 1.5 2012/10/17 20:22:15 drochner Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -27,18 +27,15 @@
*/
#include <sys/cdefs.h>
-#include <sys/types.h>
#ifndef lint
-__RCSID("$NetBSD: noarch.c,v 1.4 2012/08/31 07:27:27 drochner Exp $");
+__RCSID("$NetBSD: noarch.c,v 1.5 2012/10/17 20:22:15 drochner Exp $");
#endif /* not lint */
+#include <sys/types.h>
+#include <sys/cpuio.h>
#include <stdio.h>
-struct cpu_ucode {
- int dummy;
-};
-
#include "../cpuctl.h"
void
Home |
Main Index |
Thread Index |
Old Index