Skip to content

Commit

Permalink
Add a proper prototype for DirArchive
Browse files Browse the repository at this point in the history
The function pointers weren't fully prototyped.
  • Loading branch information
dfandrich committed Jun 11, 2024
1 parent cdb87cc commit b3b9763
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cbmarcs.c
Original file line number Diff line number Diff line change
Expand Up @@ -2615,7 +2615,10 @@ bool (* const DirFunctions[])() = {
******************************************************************************/
int DirArchive(FILE *InFile, enum ArchiveTypes ArchiveType,
struct ArcTotals *Totals,
void (*DisplayStart)(), int (*DisplayEntry)())
void (*DisplayStart)(enum ArchiveTypes ArchiveType, const char *Name),
int (*DisplayEntry)(const char *Name, const char *Type, unsigned long Length,
unsigned Blocks, const char *Storage, int Compression,
unsigned BlocksNow, long Checksum))
{
if (ArchiveType >= UnknownArchive)
return 3;
Expand Down

0 comments on commit b3b9763

Please sign in to comment.