summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2023-05-07 17:18:33 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2023-05-07 17:18:33 +0000
commit694455243e4b2a0cffec460bbca1ec9fb2f293b6 (patch)
tree6d0e9f4ef0d9385067f5c19da2895dbb63e7f2e5 /app
parent7280644e7f9bdc18b68f5a33e9020eb3fe53b4cb (diff)
Fix clang warning in local changes.
Diffstat (limited to 'app')
-rw-r--r--app/xinput/src/list.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/xinput/src/list.c b/app/xinput/src/list.c
index 705a66dc1..99ccb2850 100644
--- a/app/xinput/src/list.c
+++ b/app/xinput/src/list.c
@@ -24,6 +24,8 @@
#include "xinput.h"
#include <string.h>
+static Bool have_utf8(void);
+
enum print_format {
FORMAT_NONE,
FORMAT_SHORT,
@@ -323,10 +325,12 @@ list_xi2(Display *display,
(sd->attachment == dev->deviceid))
{
if (format == FORMAT_SHORT || format == FORMAT_LONG)
+ {
if (have_utf8())
printf("%s ↳ ", dev->use == XIMasterPointer ? "⎜" : " ");
else
printf("%s + ", dev->use == XIMasterPointer ? "|" : " ");
+ }
print_info_xi2(display, sd, format);
}
}
@@ -413,7 +417,7 @@ list(Display *display,
}
}
-Bool
+static Bool
have_utf8(void){
char *t;