From b3381929d582ecb028e6cc49d6cc963a8bfe507e Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Tue, 27 Sep 2016 22:03:50 +0000 Subject: remove more kvm code --- sbin/kbd/kbd_wscons.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'sbin') diff --git a/sbin/kbd/kbd_wscons.c b/sbin/kbd/kbd_wscons.c index 3d0bb7da0ef..41130a8ce65 100644 --- a/sbin/kbd/kbd_wscons.c +++ b/sbin/kbd/kbd_wscons.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kbd_wscons.c,v 1.29 2016/09/26 21:19:02 kettenis Exp $ */ +/* $OpenBSD: kbd_wscons.c,v 1.30 2016/09/27 22:03:49 deraadt Exp $ */ /* * Copyright (c) 2001 Mats O Jansson. All rights reserved. @@ -31,10 +31,8 @@ #include #include -#include #include #include -#include #include #include #include @@ -84,12 +82,12 @@ struct nameint kbdvar_tab[] = { extern char *__progname; -void kbd_show_enc(kvm_t *kd, int idx); +void kbd_show_enc(int idx); void kbd_list(void); void kbd_set(char *name, int verbose); void -kbd_show_enc(kvm_t *kd, int idx) +kbd_show_enc(int idx) { int i; @@ -107,7 +105,6 @@ kbd_list(void) int kbds[SA_MAX]; int fd, i, kbtype; char device[PATH_MAX]; - kvm_t *kd = NULL; bzero(kbds, sizeof(kbds)); @@ -157,7 +154,7 @@ kbd_list(void) for (i = 0; i < SA_MAX; i++) if (kbds[i] != 0) - kbd_show_enc(kd, i); + kbd_show_enc(i); } void -- cgit v1.2.3