From 92942391971efd539936c20daee1e21d2860a9dd Mon Sep 17 00:00:00 2001 From: Mika Kuoppala Date: Fri, 25 Oct 2024 02:11:54 +0300 Subject: [PATCH] util: match fopen_datafile function prototype The prototype for fopen_datafile() is different if it is used for util/dlb. Add the missing integer parameter. --- util/dlb_main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/util/dlb_main.c b/util/dlb_main.c index 57ea1c78a..67a485088 100644 --- a/util/dlb_main.c +++ b/util/dlb_main.c @@ -18,7 +18,7 @@ ATTRNORETURN static void xexit(int) NORETURN; ATTRNORETURN extern void panic(const char *, ...) NORETURN; -FILE *fopen_datafile(const char *, const char *); +FILE *fopen_datafile(const char *, const char *, int); #ifdef DLB #ifdef DLBLIB @@ -134,8 +134,10 @@ Write(int out, char *buf, long len) /* open_library(dlb.c) needs this (which normally comes from src/files.c) */ FILE * -fopen_datafile(const char *filename, const char *mode) +fopen_datafile(const char *filename, const char *mode, int prefix) { + prefix = !prefix; /* not needed, silence compiler */ + return fopen(filename, mode); }