diff options
author | Eric Curtin <ericcurtin17@gmail.com> | 2020-01-27 13:18:43 +0000 |
---|---|---|
committer | Eric Curtin <ericcurtin17@gmail.com> | 2020-01-27 13:20:38 +0000 |
commit | dbb7dc6802f8b1652272e562255e4aad910a079b (patch) | |
tree | 72cc90a4da568c6c70318d5bb6479336344ccba8 | |
parent | 4b0245a6f5cbce25a2592120233abb701e085548 (diff) | |
download | inotify-tools-dbb7dc6802f8b1652272e562255e4aad910a079b.zip inotify-tools-dbb7dc6802f8b1652272e562255e4aad910a079b.tar.gz inotify-tools-dbb7dc6802f8b1652272e562255e4aad910a079b.tar.bz2 |
No need to pass void* anymore
Because we use a strict struct type now.
-rw-r--r-- | libinotifytools/src/inotifytools.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libinotifytools/src/inotifytools.c b/libinotifytools/src/inotifytools.c index ffbe8b3..ce9ad32 100644 --- a/libinotifytools/src/inotifytools.c +++ b/libinotifytools/src/inotifytools.c @@ -381,12 +381,10 @@ struct replace_filename_data { /** * @internal */ -void replace_filename(const void *nodep, - const VISIT which, - const int depth, void *arg) { +void replace_filename(const void *nodep, const VISIT which, const int depth, + const struct replace_filename_data *data) { if (which != endorder && which != leaf) return; watch *w = (watch*)nodep; - const struct replace_filename_data *data = arg; char *name; if ( 0 == strncmp( data->old_name, w->filename, data->old_len ) ) { nasprintf( &name, "%s%s", data->new_name, &(w->filename[data->old_len]) ); |