aboutsummaryrefslogtreecommitdiffstats
path: root/community/qemu/0002-virtio-user-input-use-safe-64-bit-time-accessors-for.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/qemu/0002-virtio-user-input-use-safe-64-bit-time-accessors-for.patch')
-rw-r--r--community/qemu/0002-virtio-user-input-use-safe-64-bit-time-accessors-for.patch40
1 files changed, 0 insertions, 40 deletions
diff --git a/community/qemu/0002-virtio-user-input-use-safe-64-bit-time-accessors-for.patch b/community/qemu/0002-virtio-user-input-use-safe-64-bit-time-accessors-for.patch
deleted file mode 100644
index b965f66edb8..00000000000
--- a/community/qemu/0002-virtio-user-input-use-safe-64-bit-time-accessors-for.patch
+++ /dev/null
@@ -1,40 +0,0 @@
-From de7cf9878a216143db677820c23407c3b032d12c Mon Sep 17 00:00:00 2001
-From: Ariadne Conill <ariadne@dereferenced.org>
-Date: Wed, 22 Jul 2020 02:51:30 -0600
-Subject: [PATCH 2/2] virtio user input: use safe 64-bit time accessors for
- input_event
-
-On 32-bit systems with 64-bit time_t, input_event.time is not
-directly accessible. Instead, we must use input_event_sec and
-input_event_usec accessors to set the time values.
-
-Signed-off-by: Ariadne Conill <ariadne@dereferenced.org>
----
- contrib/vhost-user-input/main.c | 5 ++++-
- 1 file changed, 4 insertions(+), 1 deletion(-)
-
-diff --git a/contrib/vhost-user-input/main.c b/contrib/vhost-user-input/main.c
-index 6020c6f33a..4887a6cb44 100644
---- a/contrib/vhost-user-input/main.c
-+++ b/contrib/vhost-user-input/main.c
-@@ -115,13 +115,16 @@ vi_evdev_watch(VuDev *dev, int condition, void *data)
- static void vi_handle_status(VuInput *vi, virtio_input_event *event)
- {
- struct input_event evdev;
-+ struct timeval tv;
- int rc;
-
-- if (gettimeofday(&evdev.time, NULL)) {
-+ if (gettimeofday(&tv, NULL)) {
- perror("vi_handle_status: gettimeofday");
- return;
- }
-
-+ evdev.input_event_sec = tv.tv_sec;
-+ evdev.input_event_usec = tv.tv_usec;
- evdev.type = le16toh(event->type);
- evdev.code = le16toh(event->code);
- evdev.value = le32toh(event->value);
---
-2.27.0
-