From 3357643e23fe252fc14bc2535e01599f6c1c3121 Mon Sep 17 00:00:00 2001 From: Mattias Ellert Date: Sun, 19 Jan 2025 13:57:25 +0100 Subject: [PATCH] Remove redundant (and conflicting) function declarations The function fchtak() is implemented earlier in the same file. There is therefore no need to declare the function later in the same file. The later declarations redefines the function with an empty parameter list, which conflicts with the original definition. The function stat() is defined by including . The following daclaration redefines the function with an empty parameter list, which conflicts with the original definition. --- misc/minicern/src/cernlib.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/misc/minicern/src/cernlib.c b/misc/minicern/src/cernlib.c index b882db2d90d99..98f7282ce6034 100644 --- a/misc/minicern/src/cernlib.c +++ b/misc/minicern/src/cernlib.c @@ -172,8 +172,8 @@ int cfstati_(char *fname, int *info, int *lgname) #endif { struct stat buf; - char *ptname, *fchtak(); - int istat=-1, stat(); + char *ptname; + int istat = -1; ptname = fchtak(fname,*lgname); if (ptname == ((void *)0)) return -1; istat = stat(ptname, &buf); @@ -226,7 +226,7 @@ void cfopei_(int *lundes, int *medium, int *nwrec, int *mode, int *nbuf, char *ftext, int *astat, int *lgtx) #endif { - char *pttext, *fchtak(); + char *pttext; int flags = 0; int fildes; int perm;