From ba1cbad78960f89c6a4f680a51d502cfa0c83a59 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C3=ABl=20Cadilhac?= Date: Wed, 19 Sep 2007 10:02:43 +0000 Subject: [PATCH] (detect_eol_type, detect_eol_type_in_2_octet_form): Fix a C warning regarding variable constness. --- src/ChangeLog | 7 +++++++ src/coding.c | 8 ++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index c1e0f990e04..323c557f469 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,10 @@ +2007-09-19 Micha,Ak(Bl Cadilhac + + * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form): + Fix a C warning regarding variable constness. + + * xterm.c (handle_one_xevent): Fix a C warning. + 2007-09-18 Jason Rumney * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame. diff --git a/src/coding.c b/src/coding.c index e2ce0c9f8de..b6299097d55 100644 --- a/src/coding.c +++ b/src/coding.c @@ -4335,10 +4335,10 @@ detect_coding (coding, src, src_bytes) static int detect_eol_type (source, src_bytes, skip) - unsigned char *source; + const unsigned char *source; int src_bytes, *skip; { - unsigned char *src = source, *src_end = src + src_bytes; + const unsigned char *src = source, *src_end = src + src_bytes; unsigned char c; int total = 0; /* How many end-of-lines are found so far. */ int eol_type = CODING_EOL_UNDECIDED; @@ -4384,10 +4384,10 @@ detect_eol_type (source, src_bytes, skip) static int detect_eol_type_in_2_octet_form (source, src_bytes, skip, big_endian_p) - unsigned char *source; + const unsigned char *source; int src_bytes, *skip, big_endian_p; { - unsigned char *src = source, *src_end = src + src_bytes; + const unsigned char *src = source, *src_end = src + src_bytes; unsigned int c1, c2; int total = 0; /* How many end-of-lines are found so far. */ int eol_type = CODING_EOL_UNDECIDED; -- 2.39.5