From 0ee563d0c20386cc61fc376b555b4e7e242e3c9c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Sat, 20 Dec 2008 18:18:42 +0000 Subject: [PATCH] * const mset pointer, as we don't need to write on it. --- libcitadel/lib/libcitadel.h | 2 +- libcitadel/lib/tools.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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]; -- 2.30.2