From: Wilfried Göesgens Date: Sat, 20 Dec 2008 18:18:42 +0000 (+0000) Subject: * const mset pointer, as we don't need to write on it. X-Git-Tag: v7.86~1691 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=0ee563d0c20386cc61fc376b555b4e7e242e3c9c * const mset pointer, as we don't need to write on it. --- diff --git a/libcitadel/lib/libcitadel.h b/libcitadel/lib/libcitadel.h index 76ce884d0..f69003bee 100644 --- a/libcitadel/lib/libcitadel.h +++ b/libcitadel/lib/libcitadel.h @@ -324,7 +324,7 @@ void striplt(char *); int haschar(const char *st, int ch); void remove_token(char *source, int parmnum, char separator); void fmt_date(char *buf, size_t n, time_t thetime, int seconds); -int is_msg_in_sequence_set(char *mset, long msgnum); +int is_msg_in_sequence_set(const char *mset, long msgnum); char *memreadline(char *start, char *buf, int maxlen); char *memreadlinelen(char *start, char *buf, int maxlen, int *retlen); #define IsEmptyStr(a) ((a)[0] == '\0') diff --git a/libcitadel/lib/tools.c b/libcitadel/lib/tools.c index 66b85ad23..142df442f 100644 --- a/libcitadel/lib/tools.c +++ b/libcitadel/lib/tools.c @@ -555,7 +555,7 @@ void fmt_date(char *buf, size_t n, time_t thetime, int seconds) { * Determine whether the specified message number is contained within the * specified sequence set. */ -int is_msg_in_sequence_set(char *mset, long msgnum) { +int is_msg_in_sequence_set(const char *mset, long msgnum) { int num_sets; int s; char setstr[128], lostr[128], histr[128];