summaryrefslogtreecommitdiff
path: root/src/hfield.c
diff options
context:
space:
mode:
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;