From 975c9d8f29bcfc1c0b61162b9e9c2d618f474727 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Wed, 30 Mar 2022 17:09:41 -0700 Subject: [PATCH] xlib plugin handle_file_events: remove unnecessary cast and '&' The `name` member of the `inotify_event` struct is a character array. --- plugin/xlib/gvdevice_xlib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/xlib/gvdevice_xlib.c b/plugin/xlib/gvdevice_xlib.c index 33da5bb8e..2124ae764 100644 --- a/plugin/xlib/gvdevice_xlib.c +++ b/plugin/xlib/gvdevice_xlib.c @@ -436,7 +436,7 @@ static int handle_file_events(GVJ_t *job, int inotify_fd) p++; else p = job->input_filename; - if (strcmp((char*)&event->name, p) == 0) { + if (strcmp(event->name, p) == 0) { job->callbacks->read(job, job->input_filename, job->layout_type); rc++; } -- 2.40.0