mtdev: fix bad printf formats
authorRosen Penev <rosenp@gmail.com>
Mon, 31 Jan 2022 06:51:22 +0000 (22:51 -0800)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 31 Jan 2022 18:56:25 +0000 (18:56 +0000)
Easiest to just change the type.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
libs/mtdev/Makefile
libs/mtdev/patches/010-format.patch [new file with mode: 0644]

index 605041027162d83cc6c168d720a57acd0d795184..3d49227cbec21be0cedfe6bf2d08b6ec0d818578 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=mtdev
 PKG_VERSION:=1.1.6
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
 PKG_SOURCE_URL:=http://bitmath.org/code/mtdev/
diff --git a/libs/mtdev/patches/010-format.patch b/libs/mtdev/patches/010-format.patch
new file mode 100644 (file)
index 0000000..c456c4b
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/test/mtdev-test.c
++++ b/test/mtdev-test.c
+@@ -38,7 +38,7 @@
+ #endif
+ /* year-proof millisecond event time */
+-typedef uint64_t mstime_t;
++typedef unsigned long long mstime_t;
+ static int use_event(const struct input_event *ev)
+ {