]> git.eshelyaron.com Git - emacs.git/commitdiff
(detect_eol_type, detect_eol_type_in_2_octet_form):
authorMichaël Cadilhac <michael.cadilhac@lrde.org>
Wed, 19 Sep 2007 10:02:43 +0000 (10:02 +0000)
committerMichaël Cadilhac <michael.cadilhac@lrde.org>
Wed, 19 Sep 2007 10:02:43 +0000 (10:02 +0000)
Fix a C warning regarding variable constness.

src/ChangeLog
src/coding.c

index c1e0f990e04dd05a361a54f8f7bb1a26f04aa759..323c557f46949f26b85a5f9ed81605e8fb39e2ce 100644 (file)
@@ -1,3 +1,10 @@
+2007-09-19  Micha\e,Ak\e(Bl Cadilhac  <michael@cadilhac.name>
+
+       * 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  <jasonr@gnu.org>
 
        * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
index e2ce0c9f8de7a2b8d87ddd726639a382f6b4af0e..b6299097d55ed857092da067a9fcfc889eb6386b 100644 (file)
@@ -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;