Mercurial > emacs
changeset 84646:922a7e3b7383
(detect_eol_type, detect_eol_type_in_2_octet_form):
Fix a C warning regarding variable constness.
author | Michaël Cadilhac <michael.cadilhac@lrde.org> |
---|---|
date | Wed, 19 Sep 2007 10:02:32 +0000 |
parents | 4236d6c01713 |
children | 260383892b0f |
files | src/coding.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/coding.c Wed Sep 19 10:02:13 2007 +0000 +++ b/src/coding.c Wed Sep 19 10:02:32 2007 +0000 @@ -4335,10 +4335,10 @@ 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 @@ 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;