Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hp700/hp700 Fix type of variable passed to sysctl (...
details: https://anonhg.NetBSD.org/src/rev/f7cd67d8598a
branches: trunk
changeset: 779647:f7cd67d8598a
user: dsl <dsl%NetBSD.org@localhost>
date: Fri Jun 08 07:53:41 2012 +0000
description:
Fix type of variable passed to sysctl (int -> bool).
diffstat:
sys/arch/hp700/hp700/machdep.c | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diffs (46 lines):
diff -r 538362a9d73f -r f7cd67d8598a sys/arch/hp700/hp700/machdep.c
--- a/sys/arch/hp700/hp700/machdep.c Fri Jun 08 07:49:42 2012 +0000
+++ b/sys/arch/hp700/hp700/machdep.c Fri Jun 08 07:53:41 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.113 2012/05/23 16:11:37 skrll Exp $ */
+/* $NetBSD: machdep.c,v 1.114 2012/06/08 07:53:41 dsl Exp $ */
/*-
* Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
@@ -58,7 +58,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.113 2012/05/23 16:11:37 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.114 2012/06/08 07:53:41 dsl Exp $");
#include "opt_cputype.h"
#include "opt_ddb.h"
@@ -228,7 +228,7 @@
int cpu_revision;
#if NLCD > 0
-int lcd_blink_p;
+bool lcd_blink_p;
#endif
/*
@@ -1926,7 +1926,8 @@
static int
sysctl_machdep_heartbeat(SYSCTLFN_ARGS)
{
- int oldval, error;
+ int error;
+ bool oldval;
struct sysctlnode node = *rnode;
oldval = lcd_blink_p;
@@ -1938,7 +1939,7 @@
if (error || newp == NULL)
return (error);
- if (!oldval && lcd_blink_p > oldval)
+ if (!oldval && lcd_blink_p)
blink_lcd_timeout(NULL);
return 0;
Home |
Main Index |
Thread Index |
Old Index