Silent warning:

warning: no previous prototype for ‘set_csync_file_locked_or_open_ext’ [-Wmissing-prototypes]
This commit is contained in:
Olivier Goffart 2014-05-07 12:38:57 +02:00
parent f034bcb9ae
commit d7a226e0e6

View file

@ -182,6 +182,7 @@ csync_vio_file_stat_t *csync_vio_convert_file_stat(csync_file_stat_t *st) {
} }
bool (*csync_file_locked_or_open_ext) (const char*) = 0; // filled in by library user bool (*csync_file_locked_or_open_ext) (const char*) = 0; // filled in by library user
void set_csync_file_locked_or_open_ext(bool (*f) (const char*));
void set_csync_file_locked_or_open_ext(bool (*f) (const char*)) { void set_csync_file_locked_or_open_ext(bool (*f) (const char*)) {
csync_file_locked_or_open_ext = f; csync_file_locked_or_open_ext = f;
} }