aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
authorMichaël Cadilhac2007-09-19 10:02:43 +0000
committerMichaël Cadilhac2007-09-19 10:02:43 +0000
commitba1cbad78960f89c6a4f680a51d502cfa0c83a59 (patch)
treea6150fbce1d2eed8f57a06129ef70bfe08d77174 /src/coding.c
parent44342f4b79c25418b9ca4dd4196353db7b825750 (diff)
downloademacs-ba1cbad78960f89c6a4f680a51d502cfa0c83a59.tar.gz
emacs-ba1cbad78960f89c6a4f680a51d502cfa0c83a59.zip
(detect_eol_type, detect_eol_type_in_2_octet_form):
Fix a C warning regarding variable constness.
Diffstat (limited to 'src/coding.c')
-rw-r--r--src/coding.c8
1 files changed, 4 insertions, 4 deletions
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)
4335 4335
4336static int 4336static int
4337detect_eol_type (source, src_bytes, skip) 4337detect_eol_type (source, src_bytes, skip)
4338 unsigned char *source; 4338 const unsigned char *source;
4339 int src_bytes, *skip; 4339 int src_bytes, *skip;
4340{ 4340{
4341 unsigned char *src = source, *src_end = src + src_bytes; 4341 const unsigned char *src = source, *src_end = src + src_bytes;
4342 unsigned char c; 4342 unsigned char c;
4343 int total = 0; /* How many end-of-lines are found so far. */ 4343 int total = 0; /* How many end-of-lines are found so far. */
4344 int eol_type = CODING_EOL_UNDECIDED; 4344 int eol_type = CODING_EOL_UNDECIDED;
@@ -4384,10 +4384,10 @@ detect_eol_type (source, src_bytes, skip)
4384 4384
4385static int 4385static int
4386detect_eol_type_in_2_octet_form (source, src_bytes, skip, big_endian_p) 4386detect_eol_type_in_2_octet_form (source, src_bytes, skip, big_endian_p)
4387 unsigned char *source; 4387 const unsigned char *source;
4388 int src_bytes, *skip, big_endian_p; 4388 int src_bytes, *skip, big_endian_p;
4389{ 4389{
4390 unsigned char *src = source, *src_end = src + src_bytes; 4390 const unsigned char *src = source, *src_end = src + src_bytes;
4391 unsigned int c1, c2; 4391 unsigned int c1, c2;
4392 int total = 0; /* How many end-of-lines are found so far. */ 4392 int total = 0; /* How many end-of-lines are found so far. */
4393 int eol_type = CODING_EOL_UNDECIDED; 4393 int eol_type = CODING_EOL_UNDECIDED;