diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-05-09 03:21:53 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-05-09 03:21:53 +0000 |
commit | ee845d2392732f0156768def7840a9aebc2eca76 (patch) | |
tree | b42031071462f03b9fb8df56beb029e637ef65f1 /sbin/kbd | |
parent | 6075ca93d967d8dd97a7ef5aebd382b909c544ad (diff) |
lint says toss unused variable away
Diffstat (limited to 'sbin/kbd')
-rw-r--r-- | sbin/kbd/kbd_wscons.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/kbd/kbd_wscons.c b/sbin/kbd/kbd_wscons.c index 888744fe1e2..0967bf96aba 100644 --- a/sbin/kbd/kbd_wscons.c +++ b/sbin/kbd/kbd_wscons.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kbd_wscons.c,v 1.15 2003/07/10 00:00:57 david Exp $ */ +/* $OpenBSD: kbd_wscons.c,v 1.16 2004/05/09 03:21:52 deraadt Exp $ */ /* * Copyright (c) 2001 Mats O Jansson. All rights reserved. @@ -151,7 +151,7 @@ kbd_show_enc(kvm_t *kd, int idx) void kbd_list(void) { - int fd, i, kbtype, ret; + int fd, i, kbtype; kvm_t *kd; char device[MAXPATHLEN]; char errbuf[_POSIX2_LINE_MAX]; @@ -195,10 +195,10 @@ kbd_list(void) } #ifndef NOKVM - if ((kd = kvm_openfiles(NULL,NULL,NULL,O_RDONLY, errbuf)) == 0) + if ((kd = kvm_openfiles(NULL, NULL, NULL, O_RDONLY, errbuf)) == 0) errx(1, "kvm_openfiles: %s", errbuf); - if ((ret = kvm_nlist(kd, nl)) == -1) + if (kvm_nlist(kd, nl) == -1) errx(1, "kvm_nlist: %s", kvm_geterr(kd)); if (pc_kbd > 0) |