aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.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/process.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/process.c')
-rw-r--r--src/process.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/process.c b/src/process.c
index 36f5a7d5adb..4a658623077 100644
--- a/src/process.c
+++ b/src/process.c
@@ -180,7 +180,7 @@ extern Lisp_Object QCfilter;
180#define SIGCHLD SIGCLD 180#define SIGCHLD SIGCLD
181#endif /* SIGCLD */ 181#endif /* SIGCLD */
182 182
183extern char *get_operating_system_release (void); 183extern const char *get_operating_system_release (void);
184 184
185/* Serial processes require termios or Windows. */ 185/* Serial processes require termios or Windows. */
186#if defined (HAVE_TERMIOS) || defined (WINDOWSNT) 186#if defined (HAVE_TERMIOS) || defined (WINDOWSNT)
@@ -3033,7 +3033,8 @@ usage: (make-network-process &rest ARGS) */)
3033#ifdef HAVE_GETADDRINFO 3033#ifdef HAVE_GETADDRINFO
3034 struct addrinfo ai, *res, *lres; 3034 struct addrinfo ai, *res, *lres;
3035 struct addrinfo hints; 3035 struct addrinfo hints;
3036 char *portstring, portbuf[128]; 3036 const char *portstring;
3037 char portbuf[128];
3037#else /* HAVE_GETADDRINFO */ 3038#else /* HAVE_GETADDRINFO */
3038 struct _emacs_addrinfo 3039 struct _emacs_addrinfo
3039 { 3040 {
@@ -5415,7 +5416,7 @@ send_process_trap (int ignore)
5415 This function can evaluate Lisp code and can garbage collect. */ 5416 This function can evaluate Lisp code and can garbage collect. */
5416 5417
5417static void 5418static void
5418send_process (volatile Lisp_Object proc, unsigned char *volatile buf, 5419send_process (volatile Lisp_Object proc, const unsigned char *volatile buf,
5419 volatile int len, volatile Lisp_Object object) 5420 volatile int len, volatile Lisp_Object object)
5420{ 5421{
5421 /* Use volatile to protect variables from being clobbered by longjmp. */ 5422 /* Use volatile to protect variables from being clobbered by longjmp. */
@@ -7423,7 +7424,7 @@ init_process (void)
7423 processes. As such, we only change the default value. */ 7424 processes. As such, we only change the default value. */
7424 if (initialized) 7425 if (initialized)
7425 { 7426 {
7426 char *release = get_operating_system_release (); 7427 const char *release = get_operating_system_release ();
7427 if (!release || !release[0] || (release[0] < MIN_PTY_KERNEL_VERSION 7428 if (!release || !release[0] || (release[0] < MIN_PTY_KERNEL_VERSION
7428 && release[1] == '.')) { 7429 && release[1] == '.')) {
7429 Vprocess_connection_type = Qnil; 7430 Vprocess_connection_type = Qnil;