summaryrefslogtreecommitdiff
path: root/hw/xfree86/utils/kbd_mode/sun-kbd_mode.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/xfree86/utils/kbd_mode/sun-kbd_mode.c')
-rw-r--r--hw/xfree86/utils/kbd_mode/sun-kbd_mode.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/hw/xfree86/utils/kbd_mode/sun-kbd_mode.c b/hw/xfree86/utils/kbd_mode/sun-kbd_mode.c
index 294787354..6e81fd247 100644
--- a/hw/xfree86/utils/kbd_mode/sun-kbd_mode.c
+++ b/hw/xfree86/utils/kbd_mode/sun-kbd_mode.c
@@ -27,10 +27,11 @@ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH
THE USE OR PERFORMANCE OF THIS SOFTWARE.
********************************************************/
+/* $XFree86: xc/programs/Xserver/hw/sun/kbd_mode.c,v 3.11 2002/10/23 16:23:36 tsi Exp $ */
-#ifndef lint
+/*
static char sccsid[] = "@(#)kbd_mode.c 7.1 87/04/13";
-#endif
+ */
/*
* Copyright 1986 by Sun Microsystems, Inc.
@@ -41,7 +42,7 @@ static char sccsid[] = "@(#)kbd_mode.c 7.1 87/04/13";
#include <sys/types.h>
#include <sys/file.h>
#include <sys/ioctl.h>
-#if defined(SVR4) || defined(__bsdi_)
+#if defined(SVR4) || defined(__bsdi__)
#include <fcntl.h>
#ifndef __bsdi__
#include <sys/kbio.h>
@@ -61,15 +62,18 @@ static char sccsid[] = "@(#)kbd_mode.c 7.1 87/04/13";
#endif
#endif
#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
static void die(), usage();
static int kbd_fd;
+int
main(argc, argv)
int argc;
char** argv;
{
- int code, translate, direct = -1;
+ int code = 0, translate, direct = -1;
char led;
int click;