+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.
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;
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;