Module Name: src
Committed By: drochner
Date: Fri Aug 31 07:27:28 UTC 2012
Modified Files:
src/usr.sbin/cpuctl/arch: noarch.c
Log Message:
fix for archs w/o cpu ucode driver: add dummy definition
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/usr.sbin/cpuctl/arch/noarch.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/cpuctl/arch/noarch.c
diff -u src/usr.sbin/cpuctl/arch/noarch.c:1.3 src/usr.sbin/cpuctl/arch/noarch.c:1.4
--- src/usr.sbin/cpuctl/arch/noarch.c:1.3 Wed Aug 29 17:13:23 2012
+++ src/usr.sbin/cpuctl/arch/noarch.c Fri Aug 31 07:27:27 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: noarch.c,v 1.3 2012/08/29 17:13:23 drochner Exp $ */
+/* $NetBSD: noarch.c,v 1.4 2012/08/31 07:27:27 drochner Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -30,11 +30,15 @@
#include <sys/types.h>
#ifndef lint
-__RCSID("$NetBSD: noarch.c,v 1.3 2012/08/29 17:13:23 drochner Exp $");
+__RCSID("$NetBSD: noarch.c,v 1.4 2012/08/31 07:27:27 drochner Exp $");
#endif /* not lint */
#include <stdio.h>
+struct cpu_ucode {
+ int dummy;
+};
+
#include "../cpuctl.h"
void
@@ -45,7 +49,7 @@ identifycpu(int fd, const char *cpuname)
}
int
-ucodeupdate_check(int, struct cpu_ucode *uc)
+ucodeupdate_check(int fd, struct cpu_ucode *uc)
{
return 0;