From 973ae30e7c4f7a1afb385dd3d8eeea178f981445 Mon Sep 17 00:00:00 2001 From: Jannis Hoffmann Date: Mon, 8 Jul 2024 13:24:39 +0200 Subject: fix deprecated prototypes --- src/hfield.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/hfield.c') diff --git a/src/hfield.c b/src/hfield.c index 3043327..357386f 100644 --- a/src/hfield.c +++ b/src/hfield.c @@ -1,6 +1,6 @@ #include "hfield.h" -static char *(hname[]) = { +static const char *hname[] = { "unknown-header", "sender", "from", @@ -32,7 +32,7 @@ static char *(hname[]) = { "mail-followup-to", 0}; -static int hmatch(char *s, int len, char *t) +static int hmatch(char *s, int len, const char *t) { int i; char ch; @@ -56,7 +56,7 @@ static int hmatch(char *s, int len, char *t) int hfield_known(char *s, int len) { int i; - char *t; + const char *t; for (i = 1; (t = hname[i]); ++i) if (hmatch(s, len, t)) return i; -- cgit v1.2.3