From 7bfd409a1b91c65b710cec48c239062feb1b027a Mon Sep 17 00:00:00 2001 From: Minijackson Date: Fri, 24 Jul 2026 14:15:32 +0200 Subject: [PATCH] remove K&R style declaration in writeXDR Just as 86701bc8cc2cb00c6c7eb03fec9bb7fe894132b0 fixed the K&R declaration in `scanParamRecord.c`, this change fixes the C23 compilation error: writeXDR.c:165:24: error: too many arguments to function 'xdr_elem'; expected 0, have 2 --- sscanApp/src/writeXDR.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sscanApp/src/writeXDR.h b/sscanApp/src/writeXDR.h index 9ac3a1f..e9e338b 100644 --- a/sscanApp/src/writeXDR.h +++ b/sscanApp/src/writeXDR.h @@ -2,7 +2,7 @@ #include #include -typedef int (*xdrproc_t)(); +typedef int (*xdrproc_t)(FILE*, char*); extern int write_XDR_Init(); extern int writeXDR_char(FILE *fd, char *cp);