aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/wscons.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/wscons.c b/common/wscons.c
index 7fc8df5..33c757e 100644
--- a/common/wscons.c
+++ b/common/wscons.c
@@ -12,9 +12,9 @@
#if defined(__NetBSD__)
int path_is_wscons(const char *path) {
- const char *wskbd = "/dev/wskbd";
- const char *wsmouse = "/dev/wsmouse";
- const char *wsmux = "/dev/wsmux";
+ static const char wskbd[] = "/dev/wskbd";
+ static const char wsmouse[] = "/dev/wsmouse";
+ static const char wsmux[] = "/dev/wsmux";
return strncmp(path, wskbd, STRLEN(wskbd)) == 0 ||
strncmp(path, wsmouse, STRLEN(wsmouse)) == 0 ||
strncmp(path, wsmux, STRLEN(wsmouse)) == 0;