Module Name: src Committed By: dsl Date: Fri Jun 8 07:53:41 UTC 2012
Modified Files: src/sys/arch/hp700/hp700: machdep.c Log Message: Fix type of variable passed to sysctl (int -> bool). To generate a diff of this commit: cvs rdiff -u -r1.113 -r1.114 src/sys/arch/hp700/hp700/machdep.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/hp700/hp700/machdep.c diff -u src/sys/arch/hp700/hp700/machdep.c:1.113 src/sys/arch/hp700/hp700/machdep.c:1.114 --- src/sys/arch/hp700/hp700/machdep.c:1.113 Wed May 23 16:11:37 2012 +++ src/sys/arch/hp700/hp700/machdep.c Fri Jun 8 07:53:41 2012 @@ -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_modelno; int cpu_revision; #if NLCD > 0 -int lcd_blink_p; +bool lcd_blink_p; #endif /* @@ -1926,7 +1926,8 @@ sysctl_machdep_boot(SYSCTLFN_ARGS) 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 @@ sysctl_machdep_heartbeat(SYSCTLFN_ARGS) if (error || newp == NULL) return (error); - if (!oldval && lcd_blink_p > oldval) + if (!oldval && lcd_blink_p) blink_lcd_timeout(NULL); return 0;