From ec88726175bc8f8eec5166c0e4c6b4279f59b871 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96man?= Date: Sun, 31 Mar 2013 10:52:20 +0200 Subject: [PATCH] constify strtab --- src/hts_strtab.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/hts_strtab.h b/src/hts_strtab.h index f85f7fa6..38d47bcc 100644 --- a/src/hts_strtab.h +++ b/src/hts_strtab.h @@ -26,11 +26,11 @@ struct strtab { int val; }; -static int str2val0(const char *str, struct strtab tab[], int l) +static int str2val0(const char *str, const struct strtab tab[], int l) __attribute((unused)); static int -str2val0(const char *str, struct strtab tab[], int l) +str2val0(const char *str, const struct strtab tab[], int l) { int i; for(i = 0; i < l; i++) @@ -62,11 +62,11 @@ str2val0_def(const char *str, struct strtab tab[], int l, int def) str2val0_def(str, tab, sizeof(tab) / sizeof(tab[0]), def) -static const char * val2str0(int val, struct strtab tab[], int l) +static const char * val2str0(int val, const struct strtab tab[], int l) __attribute__((unused)); static const char * -val2str0(int val, struct strtab tab[], int l) +val2str0(int val, const struct strtab tab[], int l) { int i; for(i = 0; i < l; i++)