summaryrefslogtreecommitdiffstats
path: root/sys/boot/i386
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2012-02-29 18:11:33 +0000
committerjkim <jkim@FreeBSD.org>2012-02-29 18:11:33 +0000
commitab5cbfadb1d53328da49bf62aa7b7311b29765c1 (patch)
tree32edad4ebcb602f8ce03497bb30b0cef2ec3117e /sys/boot/i386
parentbf47057ad9dd16383a351f73c5dc1b17d4492ca0 (diff)
downloadFreeBSD-src-ab5cbfadb1d53328da49bf62aa7b7311b29765c1.zip
FreeBSD-src-ab5cbfadb1d53328da49bf62aa7b7311b29765c1.tar.gz
Fix a long standing bug. The caller expects a non-zero value for success.
Luckily keyboard probing was turned off by default from the first revision. Submitted by: Alexander Sack (asack at niksun dot com) MFC after: 3 days
Diffstat (limited to 'sys/boot/i386')
-rw-r--r--sys/boot/i386/libi386/vidconsole.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/boot/i386/libi386/vidconsole.c b/sys/boot/i386/libi386/vidconsole.c
index d95ce88..073d531 100644
--- a/sys/boot/i386/libi386/vidconsole.c
+++ b/sys/boot/i386/libi386/vidconsole.c
@@ -623,10 +623,10 @@ probe_keyboard(void)
#endif
if (i == KBD_ECHO) {
/* got the right answer */
- return (0);
+ return (1);
}
}
- return (1);
+ return (0);
}
#endif /* KEYBOARD_PROBE */
OpenPOWER on IntegriCloud