>From 3643eb52fb84c99f8d9fa7ac2a0c36aa38b1cd08 Mon Sep 17 00:00:00 2001 From: Collin Funk Date: Mon, 5 Aug 2024 21:55:33 -0700 Subject: [PATCH 1/5] maint: Allow compilation with C23 compilers. * src/extern.h (xstat): Add parameters to function signature. * src/global.c (xstat): Likewise. --- src/extern.h | 2 +- src/global.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/extern.h b/src/extern.h index 9431729..fb83b1e 100644 --- a/src/extern.h +++ b/src/extern.h @@ -97,7 +97,7 @@ extern char input_is_special; extern char output_is_special; extern char input_is_seekable; extern char output_is_seekable; -extern int (*xstat) (); +extern int (*xstat) (const char *pathname, struct stat *buf); extern void (*copy_function) (); extern char *change_directory_option; diff --git a/src/global.c b/src/global.c index 085d41a..3a4a41a 100644 --- a/src/global.c +++ b/src/global.c @@ -185,7 +185,7 @@ bool to_stdout_option = false; /* A pointer to either lstat or stat, depending on whether dereferencing of symlinks is done for input files. */ -int (*xstat) (); +int (*xstat) (const char *pathname, struct stat *buf); /* Which copy operation to perform. (-i, -o, -p) */ void (*copy_function) () = 0; -- 2.45.2