]> granicus.if.org Git - graphviz/commitdiff
xlib plugin handle_file_events: fix some misuse of types
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 31 Mar 2022 00:18:19 +0000 (17:18 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 2 Apr 2022 19:55:48 +0000 (12:55 -0700)
plugin/xlib/gvdevice_xlib.c

index 201ad55ca5631dce72dbcda1e5e9aa484cc98c4b..d448d37d4ae3192d23fbca72f09ae1acab98ee27 100644 (file)
@@ -422,9 +422,9 @@ static int handle_file_events(GVJ_t *job, int inotify_fd)
                     avail);
             return -1;
         }
-        len = read(inotify_fd, buf, avail);
+        len = (int)read(inotify_fd, buf, (size_t)avail);
         if (len != avail) {
-            fprintf(stderr,"avail = %u, len = %u\n", avail, len);
+            fprintf(stderr,"avail = %d, len = %d\n", avail, len);
             free(buf);
             return -1;
         }