summaryrefslogtreecommitdiff
path: root/src/headerbody.c
diff options
context:
space:
mode:
authorJannis Hoffmann <jannis@fehcom.de>2024-07-08 13:24:39 +0200
committerJannis Hoffmann <jannis@fehcom.de>2024-07-08 13:24:39 +0200
commit973ae30e7c4f7a1afb385dd3d8eeea178f981445 (patch)
tree1a5d8be5b3ff273a141b6144bf3031b1bc3deb2d /src/headerbody.c
parent66404f0bfbd78e635ff6381ca30b25157e0e1a09 (diff)
fix deprecated prototypes
Diffstat (limited to 'src/headerbody.c')
-rw-r--r--src/headerbody.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/headerbody.c b/src/headerbody.c
index 58458cf..460b1a0 100644
--- a/src/headerbody.c
+++ b/src/headerbody.c
@@ -1,8 +1,6 @@
#include "headerbody.h"
-#include "buffer.h"
#include "getln.h"
-#include "stralloc.h"
#include "hfield.h"
@@ -20,11 +18,7 @@ static int getsa(buffer *b, stralloc *sa, int *match)
static stralloc line = {0};
static stralloc nextline = {0};
-int headerbody(b, dohf, hdone, dobl)
-buffer *b;
-void (*dohf)();
-void (*hdone)();
-void (*dobl)();
+int headerbody(buffer *b, void (*dohf)(stralloc *), void (*hdone)(void), void (*dobl)(stralloc *))
{
int match;
int flaglineok;