summaryrefslogtreecommitdiff
path: root/sway/input.c
diff options
context:
space:
mode:
authorDrew DeVault <[email protected]>2017-06-06 09:34:01 -0400
committerGitHub <[email protected]>2017-06-06 09:34:01 -0400
commitfd47a30e75cccfc3789eafa4bfabd66f4696099b (patch)
tree10c1529eb56235b303bdbca905e8b80dce47ae6d /sway/input.c
parent5ed533a94331ea2d849f900ee20f8932d742e9b5 (diff)
parent7fef2830446e1f98a02f8d8a3bba866b7edd5bd0 (diff)
Merge pull request #1232 from johalun/master-freebsd
FreeBSD fixes
Diffstat (limited to 'sway/input.c')
-rw-r--r--sway/input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/input.c b/sway/input.c
index 4f1ef760..6263f79f 100644
--- a/sway/input.c
+++ b/sway/input.c
@@ -1,4 +1,4 @@
-#define _XOPEN_SOURCE 500
+#define _XOPEN_SOURCE 700
#include <ctype.h>
#include <float.h>
#include <limits.h>
@@ -60,7 +60,7 @@ char *libinput_dev_unique_id(struct libinput_device *device) {
}
const char *fmt = "%d:%d:%s";
- snprintf(identifier, len, fmt, vendor, product, name);
+ snprintf(identifier, len, fmt, vendor, product, name);
free(name);
return identifier;
}