aboutsummaryrefslogtreecommitdiffstats
path: root/filter.c
diff options
context:
space:
mode:
authorJohn Keeping2015-03-08 16:32:16 +0000
committerJason A. Donenfeld2015-03-09 17:38:30 +0100
commite3d3fffdd447cdb4551549faae65bae5353a2cab (patch)
tree43ab1eaeeabf9269d0eebb64e64e957183f41b4d /filter.c
parent5150b7c1e69b4b09821e438006cfd77d82edae3b (diff)
downloadcgit-e3d3fffdd447cdb4551549faae65bae5353a2cab.tar.gz
cgit-e3d3fffdd447cdb4551549faae65bae5353a2cab.tar.bz2
cgit-e3d3fffdd447cdb4551549faae65bae5353a2cab.zip
Avoid non-ANSI function declarations
Sparse says things like: warning: non-ANSI function declaration of function 'calc_ttl' Signed-off-by: John Keeping <john@keeping.me.uk>
Diffstat (limited to 'filter.c')
-rw-r--r--filter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/filter.c b/filter.c
index 9f433db..ebf4937 100644
--- a/filter.c
+++ b/filter.c
@@ -72,7 +72,7 @@ static inline void hook_write(struct cgit_filter *filter, ssize_t (*new_write)(s
72 filter_write = new_write; 72 filter_write = new_write;
73} 73}
74 74
75static inline void unhook_write() 75static inline void unhook_write(void)
76{ 76{
77 assert(filter_write != NULL); 77 assert(filter_write != NULL);
78 assert(current_write_filter != NULL); 78 assert(current_write_filter != NULL);