Mercurial > emacs
diff src/coding.c @ 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 | 65663fcd2caa |
| children | 0bc184c59770 bdb3fe0ba9fa |
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;
