* ups, forgot to commit this; make memreadline const
authorWilfried Göesgens <willi@citadel.org>
Sat, 27 Feb 2010 12:45:01 +0000 (12:45 +0000)
committerWilfried Göesgens <willi@citadel.org>
Sat, 27 Feb 2010 12:45:01 +0000 (12:45 +0000)
libcitadel/lib/tools.c

index dc9652777580ff5c7cab5fa3413ad063919e6694..bffa6e56ab9ad12521732094a0feb4faa4307add 100644 (file)
@@ -629,10 +629,10 @@ int is_msg_in_sequence_set(const char *mset, long msgnum) {
  * \param maxlen Size of string buffer
  * \return Pointer to the source memory right after we stopped reading.
  */
-char *memreadline(char *start, char *buf, int maxlen)
+const char *memreadline(const char *start, char *buf, int maxlen)
 {
        char ch;
-       char *ptr;
+       const char *ptr;
        int len = 0;            /**< tally our own length to avoid strlen() delays */
 
        ptr = start;