diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2011-02-06 11:44:36 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2011-02-06 11:44:36 -0800 |
commit | b68864e5b9b695570d35dd7c41d5d010ba7cc87d (patch) | |
tree | 4ca664d771a5b7482d1a726406cbfd4d46531fb8 /src/cmds.c | |
parent | f8b351c190ecb3d01bd81a0c4624153b15a95f89 (diff) | |
download | emacs-b68864e5b9b695570d35dd7c41d5d010ba7cc87d.tar.gz |
* insdel.c: conform to C89 pointer rules
Diffstat (limited to 'src/cmds.c')
-rw-r--r-- | src/cmds.c | 7 |
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) else if (n > 1) { USE_SAFE_ALLOCA; - unsigned char *strn, *p; - SAFE_ALLOCA (strn, unsigned char*, n * len); + char *strn, *p; + SAFE_ALLOCA (strn, char *, n * len); for (p = strn; n > 0; n--, p += len) memcpy (p, str, len); insert_and_inherit (strn, p - strn); SAFE_FREE (); } else if (n > 0) - insert_and_inherit (str, len); + insert_and_inherit ((char *) str, len); if ((CHAR_TABLE_P (Vauto_fill_chars) ? !NILP (CHAR_TABLE_REF (Vauto_fill_chars, c)) @@ -559,4 +559,3 @@ keys_of_cmds (void) initial_define_key (global_map, Ctl ('E'), "end-of-line"); initial_define_key (global_map, Ctl ('F'), "forward-char"); } - |