Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Feb 2012 18:11:34 +0000 (UTC)
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r232309 - head/sys/boot/i386/libi386
Message-ID:  <201202291811.q1TIBYim038653@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jkim
Date: Wed Feb 29 18:11:33 2012
New Revision: 232309
URL: http://svn.freebsd.org/changeset/base/232309

Log:
  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

Modified:
  head/sys/boot/i386/libi386/vidconsole.c

Modified: head/sys/boot/i386/libi386/vidconsole.c
==============================================================================
--- head/sys/boot/i386/libi386/vidconsole.c	Wed Feb 29 17:47:01 2012	(r232308)
+++ head/sys/boot/i386/libi386/vidconsole.c	Wed Feb 29 18:11:33 2012	(r232309)
@@ -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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201202291811.q1TIBYim038653>