Skip to content

Commit d28f5ac

Browse files
ellerthageboeck
authored andcommitted
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 <sys/stat.h>. The following daclaration redefines the function with an empty parameter list, which conflicts with the original definition.
1 parent 9304501 commit d28f5ac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

misc/minicern/src/cernlib.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,8 @@ int cfstati_(char *fname, int *info, int *lgname)
172172
#endif
173173
{
174174
struct stat buf;
175-
char *ptname, *fchtak();
176-
int istat=-1, stat();
175+
char *ptname;
176+
int istat = -1;
177177
ptname = fchtak(fname,*lgname);
178178
if (ptname == ((void *)0)) return -1;
179179
istat = stat(ptname, &buf);
@@ -226,7 +226,7 @@ void cfopei_(int *lundes, int *medium, int *nwrec, int *mode, int *nbuf,
226226
char *ftext, int *astat, int *lgtx)
227227
#endif
228228
{
229-
char *pttext, *fchtak();
229+
char *pttext;
230230
int flags = 0;
231231
int fildes;
232232
int perm;

0 commit comments

Comments
 (0)