From 667f2666c3ddda60837f2114bf6dc8d668a9ef99 Mon Sep 17 00:00:00 2001 From: Levi Neely Date: Sun, 8 Mar 2026 15:29:57 +0100 Subject: [PATCH] Fix function declaration order for pfs_debug_check_lock_order --- pclsync/pfs.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pclsync/pfs.h b/pclsync/pfs.h index b79b1af..f36b1ba 100644 --- a/pclsync/pfs.h +++ b/pclsync/pfs.h @@ -138,6 +138,8 @@ typedef struct { int dummy[0]; } pfs_index_header; +void pfs_debug_check_lock_order(const char *file, unsigned long line); + #if IS_DEBUG #define pfs_lock_file(of) pfs_do_lock_file(of, __FILE__, __LINE__) @@ -198,7 +200,6 @@ void pfs_clean_tasks(); void pfs_debug_init_file_mutex(pthread_mutex_t *m); void pfs_debug_dump_internals(); void pfs_debug_register_signal_handlers(); -void pfs_debug_check_lock_order(const char *file, unsigned long line); extern volatile sig_atomic_t shutdown_requested;