summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoranton <anton@openbsd.org>2017-12-31 09:40:41 +0000
committeranton <anton@openbsd.org>2017-12-31 09:40:41 +0000
commit7b03e13853aa45790bb0a77c8b9f899d4d86a464 (patch)
tree30aface3a2486d1c81298d5438e4bc9c2c170ce2
parentTighten the permissions used in the early stage page tables somewhat. (diff)
downloadwireguard-openbsd-7b03e13853aa45790bb0a77c8b9f899d4d86a464.tar.xz
wireguard-openbsd-7b03e13853aa45790bb0a77c8b9f899d4d86a464.zip
Remove an unused variable and instruct lex not to produce the input() function
since it's never used; ok guenther@
-rw-r--r--sbin/wsconsctl/map_scan.l4
-rw-r--r--sbin/wsconsctl/mousecfg.c3
2 files changed, 3 insertions, 4 deletions
diff --git a/sbin/wsconsctl/map_scan.l b/sbin/wsconsctl/map_scan.l
index 40c793a9577..e64e4208e94 100644
--- a/sbin/wsconsctl/map_scan.l
+++ b/sbin/wsconsctl/map_scan.l
@@ -1,4 +1,4 @@
-/* $OpenBSD: map_scan.l,v 1.7 2017/07/09 14:04:50 espie Exp $ */
+/* $OpenBSD: map_scan.l,v 1.8 2017/12/31 09:40:41 anton Exp $ */
/* $NetBSD: map_scan.l 1.1 1998/12/28 14:01:17 hannken Exp $ */
/*-
@@ -30,7 +30,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
-%option noyywrap
+%option noinput noyywrap
%{
diff --git a/sbin/wsconsctl/mousecfg.c b/sbin/wsconsctl/mousecfg.c
index 78f4d99dabb..6830f2e4362 100644
--- a/sbin/wsconsctl/mousecfg.c
+++ b/sbin/wsconsctl/mousecfg.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mousecfg.c,v 1.1 2017/07/21 20:38:20 bru Exp $ */
+/* $OpenBSD: mousecfg.c,v 1.2 2017/12/31 09:40:41 anton Exp $ */
/*
* Copyright (c) 2017 Ulf Brosziewski
@@ -303,7 +303,6 @@ mousecfg_pr_field(struct wsmouse_parameters *field)
void
mousecfg_rd_field(struct wsmouse_parameters *field, char *val)
{
- enum wsmousecfg first = field->params[0].key;
int i, n;
const char *s;
float f;