]> granicus.if.org Git - graphviz/commitdiff
xlib plugin handle_file_events: remove unnecessary cast and '&'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 31 Mar 2022 00:09:41 +0000 (17:09 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 2 Apr 2022 19:55:48 +0000 (12:55 -0700)
The `name` member of the `inotify_event` struct is a character array.

plugin/xlib/gvdevice_xlib.c

index 33da5bb8e66754105b6a4deed0889e575e79d233..2124ae764670a658b477cc5625f53204e5694121 100644 (file)
@@ -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++;
                }