aboutsummaryrefslogtreecommitdiffstats
path: root/src/cmds.c
diff options
context:
space:
mode:
authorPaul Eggert2011-02-06 11:44:36 -0800
committerPaul Eggert2011-02-06 11:44:36 -0800
commitb68864e5b9b695570d35dd7c41d5d010ba7cc87d (patch)
tree4ca664d771a5b7482d1a726406cbfd4d46531fb8 /src/cmds.c
parentf8b351c190ecb3d01bd81a0c4624153b15a95f89 (diff)
downloademacs-b68864e5b9b695570d35dd7c41d5d010ba7cc87d.tar.gz
emacs-b68864e5b9b695570d35dd7c41d5d010ba7cc87d.zip
* insdel.c: conform to C89 pointer rules
Diffstat (limited to 'src/cmds.c')
-rw-r--r--src/cmds.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/cmds.c b/src/cmds.c
index ce05b19e1c2..93b7e2b7651 100644
--- a/src/cmds.c
+++ b/src/cmds.c
@@ -466,15 +466,15 @@ internal_self_insert (int c, EMACS_INT n)
466 else if (n > 1) 466 else if (n > 1)
467 { 467 {
468 USE_SAFE_ALLOCA; 468 USE_SAFE_ALLOCA;
469 unsigned char *strn, *p; 469 char *strn, *p;
470 SAFE_ALLOCA (strn, unsigned char*, n * len); 470 SAFE_ALLOCA (strn, char *, n * len);
471 for (p = strn; n > 0; n--, p += len) 471 for (p = strn; n > 0; n--, p += len)
472 memcpy (p, str, len); 472 memcpy (p, str, len);
473 insert_and_inherit (strn, p - strn); 473 insert_and_inherit (strn, p - strn);
474 SAFE_FREE (); 474 SAFE_FREE ();
475 } 475 }
476 else if (n > 0) 476 else if (n > 0)
477 insert_and_inherit (str, len); 477 insert_and_inherit ((char *) str, len);
478 478
479 if ((CHAR_TABLE_P (Vauto_fill_chars) 479 if ((CHAR_TABLE_P (Vauto_fill_chars)
480 ? !NILP (CHAR_TABLE_REF (Vauto_fill_chars, c)) 480 ? !NILP (CHAR_TABLE_REF (Vauto_fill_chars, c))
@@ -559,4 +559,3 @@ keys_of_cmds (void)
559 initial_define_key (global_map, Ctl ('E'), "end-of-line"); 559 initial_define_key (global_map, Ctl ('E'), "end-of-line");
560 initial_define_key (global_map, Ctl ('F'), "forward-char"); 560 initial_define_key (global_map, Ctl ('F'), "forward-char");
561} 561}
562