* const mset pointer, as we don't need to write on it.
authorWilfried Göesgens <willi@citadel.org>
Sat, 20 Dec 2008 18:18:42 +0000 (18:18 +0000)
committerWilfried Göesgens <willi@citadel.org>
Sat, 20 Dec 2008 18:18:42 +0000 (18:18 +0000)
libcitadel/lib/libcitadel.h
libcitadel/lib/tools.c

index 76ce884d00a8fc05f8782a29bb8496c0934aca99..f69003bee6831e9fe6f0963d13f1ad86e406f6bc 100644 (file)
@@ -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')
index 66b85ad2351d831ea5dea8b9643482f9b1c7a392..142df442faf33e5c2b56c8b9abee73bbfd2971d9 100644 (file)
@@ -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];