diff options
| author | Dan Nicolaescu | 2010-08-09 02:35:21 -0700 |
|---|---|---|
| committer | Dan Nicolaescu | 2010-08-09 02:35:21 -0700 |
| commit | 8ea90aa3525a93194e98b7e1b2ea77e96ca3dde6 (patch) | |
| tree | d2719f3f91a5aeac252e14e777ceea6aea06527d /src/filelock.c | |
| parent | 443c2c0301d7d69efa875510d7a4530573b5e76c (diff) | |
| download | emacs-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/filelock.c')
| -rw-r--r-- | src/filelock.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/filelock.c b/src/filelock.c index 25ca23fdee4..15ed546bc50 100644 --- a/src/filelock.c +++ b/src/filelock.c | |||
| @@ -118,7 +118,7 @@ static time_t boot_time; | |||
| 118 | static int boot_time_initialized; | 118 | static int boot_time_initialized; |
| 119 | 119 | ||
| 120 | #ifdef BOOT_TIME | 120 | #ifdef BOOT_TIME |
| 121 | static void get_boot_time_1 (char *, int); | 121 | static void get_boot_time_1 (const char *, int); |
| 122 | #endif | 122 | #endif |
| 123 | 123 | ||
| 124 | static time_t | 124 | static time_t |
| @@ -249,7 +249,7 @@ get_boot_time (void) | |||
| 249 | Success is indicated by setting BOOT_TIME to a larger value. */ | 249 | Success is indicated by setting BOOT_TIME to a larger value. */ |
| 250 | 250 | ||
| 251 | void | 251 | void |
| 252 | get_boot_time_1 (char *filename, int newest) | 252 | get_boot_time_1 (const char *filename, int newest) |
| 253 | { | 253 | { |
| 254 | struct utmp ut, *utp; | 254 | struct utmp ut, *utp; |
| 255 | int desc; | 255 | int desc; |
| @@ -360,8 +360,8 @@ lock_file_1 (char *lfname, int force) | |||
| 360 | { | 360 | { |
| 361 | register int err; | 361 | register int err; |
| 362 | time_t boot_time; | 362 | time_t boot_time; |
| 363 | char *user_name; | 363 | const char *user_name; |
| 364 | char *host_name; | 364 | const char *host_name; |
| 365 | char *lock_info_str; | 365 | char *lock_info_str; |
| 366 | 366 | ||
| 367 | /* Call this first because it can GC. */ | 367 | /* Call this first because it can GC. */ |