summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpefo <pefo@openbsd.org>1996-09-28 08:49:07 +0000
committerpefo <pefo@openbsd.org>1996-09-28 08:49:07 +0000
commitec9af2add3249421ceed555e4b96de47b5074cb7 (patch)
treecc3afdc858b532e4c31d7973e6530333c373d764
parent..and update it again. (diff)
downloadwireguard-openbsd-ec9af2add3249421ceed555e4b96de47b5074cb7.tar.xz
wireguard-openbsd-ec9af2add3249421ceed555e4b96de47b5074cb7.zip
ARC machines use kbd mapping too. Small bug in kbd_void.c fixed. (crashed on other arch's).
-rw-r--r--sbin/kbd/Makefile4
-rw-r--r--sbin/kbd/kbd_void.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sbin/kbd/Makefile b/sbin/kbd/Makefile
index 636208ff33d..5fd05a017a2 100644
--- a/sbin/kbd/Makefile
+++ b/sbin/kbd/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.2 1996/04/29 11:21:08 mickey Exp $
+# $OpenBSD: Makefile,v 1.3 1996/09/28 08:49:07 pefo Exp $
# @(#)Makefile 8.1 (Berkeley) 6/5/93
PROG= kbd
@@ -6,7 +6,7 @@ MAN= kbd.8
SRCS= main.c
CFLAGS+=-I${.CURDIR}
-.if ${MACHINE} == "i386"
+.if (${MACHINE} == "i386") || (${MACHINE} == "arc")
SRCS+= kbd_i386.c
.else
SRCS+= kbd_void.c
diff --git a/sbin/kbd/kbd_void.c b/sbin/kbd/kbd_void.c
index 4149a2cc649..1057df21cc8 100644
--- a/sbin/kbd/kbd_void.c
+++ b/sbin/kbd/kbd_void.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kbd_void.c,v 1.2 1996/06/30 05:16:27 deraadt Exp $ */
+/* $OpenBSD: kbd_void.c,v 1.3 1996/09/28 08:49:08 pefo Exp $ */
/*
* Copyright (c) 1996 Juergen Hannken-Illjes
@@ -34,7 +34,7 @@
#include <stdio.h>
-extern char __progname;
+extern char *__progname;
void
kbd_list()