summaryrefslogtreecommitdiff
path: root/src/hfield.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/hfield.c
parent66404f0bfbd78e635ff6381ca30b25157e0e1a09 (diff)
fix deprecated prototypes
Diffstat (limited to 'src/hfield.c')
-rw-r--r--src/hfield.c6
1 files changed, 3 insertions, 3 deletions
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;