~kennylevinsen/seatd

6888653a8dd7e0a3124f3b7f1e3356ae9dc782e9 — Kenny Levinsen a month ago 2842f0e
wscons: Fix STRLEN
1 files changed, 3 insertions(+), 3 deletions(-)

M common/wscons.c
M common/wscons.c => common/wscons.c +3 -3
@@ 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;