aboutsummaryrefslogtreecommitdiff
path: root/cgit.h
diff options
context:
space:
mode:
authorDenis Pronin <dannftk@yandex.ru>2024-06-09 09:41:36 +0300
committerChristian Hesse <mail@eworm.de>2024-07-16 13:26:10 +0200
commitfb87de795b9f1b1e21825243716ff1156097adf2 (patch)
tree671f842691bfe82d1238d3701c28ae02ab22d681 /cgit.h
parentui-stats: add missing source header (diff)
fix building with clang
fix error that is given because of macro overlapping cgit_filter member: ../filter.c:388:10: error: no member named '__fprintf_chk' in 'struct cgit_filter' 388 | filter->fprintf(filter, f, prefix); | ~~~~~~ ^ /usr/include/bits/stdio2.h:92:3: note: expanded from macro 'fprintf' 92 | __fprintf_chk (stream, __USE_FORTIFY_LEVEL - 1, __VA_ARGS__) | ^ 1 error generated. Signed-off-by: Denis Pronin <dannftk@yandex.ru> Signed-off-by: Christian Hesse <mail@eworm.de>
Diffstat (limited to 'cgit.h')
-rw-r--r--cgit.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cgit.h b/cgit.h
index dbc461f..e0d286d 100644
--- a/cgit.h
+++ b/cgit.h
@@ -69,7 +69,7 @@ typedef enum {
struct cgit_filter {
int (*open)(struct cgit_filter *, va_list ap);
int (*close)(struct cgit_filter *);
- void (*fprintf)(struct cgit_filter *, FILE *, const char *prefix);
+ void (*fprintfp)(struct cgit_filter *, FILE *, const char *prefix);
void (*cleanup)(struct cgit_filter *);
int argument_count;
};