# HG changeset patch # User Micha¸«³l Cadilhac # Date 1190196152 0 # Node ID 922a7e3b7383cafffbb59f4f0646cca943e926ab # Parent 4236d6c017130e1d43fe889190ba72513df5d4b8 (detect_eol_type, detect_eol_type_in_2_octet_form): Fix a C warning regarding variable constness. diff -r 4236d6c01713 -r 922a7e3b7383 src/coding.c --- 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;