projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45ba7e1
)
* ups, forgot to commit this; make memreadline const
author
Wilfried Göesgens
<willi@citadel.org>
Sat, 27 Feb 2010 12:45:01 +0000
(12:45 +0000)
committer
Wilfried Göesgens
<willi@citadel.org>
Sat, 27 Feb 2010 12:45:01 +0000
(12:45 +0000)
libcitadel/lib/tools.c
patch
|
blob
|
history
diff --git
a/libcitadel/lib/tools.c
b/libcitadel/lib/tools.c
index dc9652777580ff5c7cab5fa3413ad063919e6694..bffa6e56ab9ad12521732094a0feb4faa4307add 100644
(file)
--- a/
libcitadel/lib/tools.c
+++ b/
libcitadel/lib/tools.c
@@
-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.
*/
-c
har *memreadline(
char *start, char *buf, int maxlen)
+c
onst char *memreadline(const
char *start, char *buf, int maxlen)
{
char ch;
- char *ptr;
+ c
onst c
har *ptr;
int len = 0; /**< tally our own length to avoid strlen() delays */
ptr = start;