aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog1
-rw-r--r--src/sysdep.c4
2 files changed, 4 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 0840e5ec9f0..266ff2f58a6 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,6 +1,7 @@
12011-03-14 Paul Eggert <eggert@cs.ucla.edu> 12011-03-14 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 * sysdep.c (system_process_attributes): Rename vars to avoid shadowing. 3 * sysdep.c (system_process_attributes): Rename vars to avoid shadowing.
4 Fix pointer signedness issue.
4 5
5 * process.c (serial_open, serial_configure): Move decls from here ... 6 * process.c (serial_open, serial_configure): Move decls from here ...
6 * systty.h: ... to here, so that they can be checked. 7 * systty.h: ... to here, so that they can be checked.
diff --git a/src/sysdep.c b/src/sysdep.c
index b8fbf863074..e19f9ca829e 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -2845,8 +2845,10 @@ system_process_attributes (Lisp_Object pid)
2845 fd = emacs_open (fn, O_RDONLY, 0); 2845 fd = emacs_open (fn, O_RDONLY, 0);
2846 if (fd >= 0) 2846 if (fd >= 0)
2847 { 2847 {
2848 for (cmdline_size = 0; emacs_read (fd, &c, 1) == 1; cmdline_size++) 2848 char ch;
2849 for (cmdline_size = 0; emacs_read (fd, &ch, 1) == 1; cmdline_size++)
2849 { 2850 {
2851 c = ch;
2850 if (isspace (c) || c == '\\') 2852 if (isspace (c) || c == '\\')
2851 cmdline_size++; /* for later quoting, see below */ 2853 cmdline_size++; /* for later quoting, see below */
2852 } 2854 }