From a347d141fd25064f6ecacf7e28dcbd7e6f2b295c Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Tue, 26 Oct 2010 23:06:20 +0200 Subject: [PATCH] * make it const, not written anyways --- libcitadel/lib/html_to_ascii.c | 4 ++-- libcitadel/lib/libcitadel.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libcitadel/lib/html_to_ascii.c b/libcitadel/lib/html_to_ascii.c index ccf074a48..b80272aec 100644 --- a/libcitadel/lib/html_to_ascii.c +++ b/libcitadel/lib/html_to_ascii.c @@ -49,13 +49,13 @@ * screenwidth = desired output screenwidth * do_citaformat = set to 1 to indent newlines with spaces */ -char *html_to_ascii(char *inputmsg, int msglen, int screenwidth, int do_citaformat) { +char *html_to_ascii(const char *inputmsg, int msglen, int screenwidth, int do_citaformat) { char inbuf[SIZ]; int inbuf_len = 0; char outbuf[SIZ]; char tag[1024]; int done_reading = 0; - char *inptr; + const char *inptr; char *outptr; size_t outptr_buffer_size; size_t output_len = 0; diff --git a/libcitadel/lib/libcitadel.h b/libcitadel/lib/libcitadel.h index c52fa6e2e..b8309761c 100644 --- a/libcitadel/lib/libcitadel.h +++ b/libcitadel/lib/libcitadel.h @@ -366,7 +366,7 @@ char *rfc2047encode(char *line, long length); int is_msg_in_mset(const char *mset, long msgnum); int pattern2(char *search, char *patn); void stripltlen(char *, int *); -char *html_to_ascii(char *inputmsg, int msglen, int screenwidth, int do_citaformat); +char *html_to_ascii(const char *inputmsg, int msglen, int screenwidth, int do_citaformat); void LoadEntityList(char *FileName); -- 2.39.2