aboutsummaryrefslogtreecommitdiffstats
path: root/src/keymap.c
diff options
context:
space:
mode:
authorDan Nicolaescu2010-08-09 02:35:21 -0700
committerDan Nicolaescu2010-08-09 02:35:21 -0700
commit8ea90aa3525a93194e98b7e1b2ea77e96ca3dde6 (patch)
treed2719f3f91a5aeac252e14e777ceea6aea06527d /src/keymap.c
parent443c2c0301d7d69efa875510d7a4530573b5e76c (diff)
downloademacs-8ea90aa3525a93194e98b7e1b2ea77e96ca3dde6.tar.gz
emacs-8ea90aa3525a93194e98b7e1b2ea77e96ca3dde6.zip
Use const char* instead of char*.
Reduce the number of warnings with -Wwrite-strings. * src/xrdb.c (get_environ_db, get_system_name): * src/unexelf.c (find_section): * src/term.c (string_cost, string_cost_one_line, per_line_cost) (get_named_tty, init_tty): * src/sysdep.c (sys_subshell): * src/sound.c (sound_perror, sound_warning, vox_open, vox_init) (alsa_sound_perror, alsa_open, alsa_configure, alsa_init): * src/search.c (Freplace_match): * src/process.c (Fmake_network_process, send_process, init_process): * src/lread.c (Fload, init_lread): * src/keymap.c (Fdescribe_buffer_bindings, describe_map_tree): * src/keyboard.c (parse_tool_bar_item, struct event_head): * src/gtkutil.h (xg_get_font_name): * src/gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name) (make_widget_for_menu_item, make_menu_item, create_menus) (xg_make_tool_item): * src/font.c (parse_matrix, font_parse_name): * src/floatfns.c (rounding_driver, float_error_fn_name): * src/filelock.c (get_boot_time_1, lock_file_1): * src/fileio.c (barf_or_query_if_file_exists, check_writable): * src/editfns.c (get_system_name, get_operating_system_release) (Fencode_time, Fset_time_zone_rule): * src/dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty): * src/buffer.c (defvar_per_buffer): Use const.
Diffstat (limited to 'src/keymap.c')
-rw-r--r--src/keymap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/keymap.c b/src/keymap.c
index 166ec4fa224..cc25d350d44 100644
--- a/src/keymap.c
+++ b/src/keymap.c
@@ -2962,7 +2962,7 @@ The optional argument MENUS, if non-nil, says to mention menu bindings.
2962 register Lisp_Object start1; 2962 register Lisp_Object start1;
2963 struct gcpro gcpro1; 2963 struct gcpro gcpro1;
2964 2964
2965 char *alternate_heading 2965 const char *alternate_heading
2966 = "\ 2966 = "\
2967Keyboard translations:\n\n\ 2967Keyboard translations:\n\n\
2968You type Translation\n\ 2968You type Translation\n\
@@ -3134,13 +3134,13 @@ You type Translation\n\
3134 3134
3135void 3135void
3136describe_map_tree (Lisp_Object startmap, int partial, Lisp_Object shadow, 3136describe_map_tree (Lisp_Object startmap, int partial, Lisp_Object shadow,
3137 Lisp_Object prefix, char *title, int nomenu, int transl, 3137 Lisp_Object prefix, const char *title, int nomenu, int transl,
3138 int always_title, int mention_shadow) 3138 int always_title, int mention_shadow)
3139{ 3139{
3140 Lisp_Object maps, orig_maps, seen, sub_shadows; 3140 Lisp_Object maps, orig_maps, seen, sub_shadows;
3141 struct gcpro gcpro1, gcpro2, gcpro3; 3141 struct gcpro gcpro1, gcpro2, gcpro3;
3142 int something = 0; 3142 int something = 0;
3143 char *key_heading 3143 const char *key_heading
3144 = "\ 3144 = "\
3145key binding\n\ 3145key binding\n\
3146--- -------\n"; 3146--- -------\n";