* sysdep.c: Fix pointer signedness issue.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 14 Mar 2011 22:56:24 +0000 (15:56 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 14 Mar 2011 22:56:24 +0000 (15:56 -0700)
src/ChangeLog
src/sysdep.c

index 0840e5e..266ff2f 100644 (file)
@@ -1,6 +1,7 @@
 2011-03-14  Paul Eggert  <eggert@cs.ucla.edu>
 
        * sysdep.c (system_process_attributes): Rename vars to avoid shadowing.
+       Fix pointer signedness issue.
 
        * process.c (serial_open, serial_configure): Move decls from here ...
        * systty.h: ... to here, so that they can be checked.
index b8fbf86..e19f9ca 100644 (file)
@@ -2845,8 +2845,10 @@ system_process_attributes (Lisp_Object pid)
   fd = emacs_open (fn, O_RDONLY, 0);
   if (fd >= 0)
     {
-      for (cmdline_size = 0; emacs_read (fd, &c, 1) == 1; cmdline_size++)
+      char ch;
+      for (cmdline_size = 0; emacs_read (fd, &ch, 1) == 1; cmdline_size++)
        {
+         c = ch;
          if (isspace (c) || c == '\\')
            cmdline_size++;     /* for later quoting, see below */
        }