From ea755d840ab35d2b59ea0ab164b5101bba9d7f80 Mon Sep 17 00:00:00 2001 From: Eric Curtin Date: Mon, 27 Jan 2020 13:36:50 +0000 Subject: Fix some compiler warnings One left to fix, this is just a simple cast --- libinotifytools/src/inotifytools.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libinotifytools/src/inotifytools.c b/libinotifytools/src/inotifytools.c index ce9ad32..f5e207f 100644 --- a/libinotifytools/src/inotifytools.c +++ b/libinotifytools/src/inotifytools.c @@ -374,8 +374,9 @@ void empty_stats(const void *nodep, * @internal */ struct replace_filename_data { - char *old_name, *new_name; - size_t old_len; + char const *old_name; + char const *new_name; + size_t old_len; }; /** @@ -870,7 +871,7 @@ void inotifytools_replace_filename( char const * oldname, data.old_name = oldname; data.new_name = newname; data.old_len = strlen(oldname); - rbwalk(tree_filename, replace_filename, (void*)&data); + rbwalk(tree_filename, (void *)replace_filename, (void *)&data); } /** -- cgit v1.1