]> git.eshelyaron.com Git - emacs.git/commitdiff
* emacsclient.c: conform to C89 pointer rules
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 5 Feb 2011 07:18:46 +0000 (23:18 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 5 Feb 2011 07:18:46 +0000 (23:18 -0800)
lib-src/ChangeLog
lib-src/emacsclient.c

index 737183de3363efba863e50373a71c9c81203c731..3f4e4b1b9ff65d9069b848a16724fc398d701245 100644 (file)
@@ -1,3 +1,9 @@
+2011-02-05  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * emacsclient.c: conform to C89 pointer rules
+       (file_name_absolute_p): Accept const char *, not const unsigned
+       char *, to satisfy C89 rules.
+
 2011-02-02  Eli Zaretskii  <eliz@gnu.org>
 
        * makefile.w32-in (ETAGS_CFLAGS, CTAGS_CFLAGS): Add
index 27042ebaef2423db173d6910867d1796ae9de6a4..e5484b987e2a2a7acac34dc933390775971aa17d 100644 (file)
@@ -854,7 +854,7 @@ unquote_argument (char *str)
 
 \f
 int
-file_name_absolute_p (const unsigned char *filename)
+file_name_absolute_p (const char *filename)
 {
   /* Sanity check, it shouldn't happen.  */
   if (! filename) return FALSE;
@@ -867,7 +867,7 @@ file_name_absolute_p (const unsigned char *filename)
 
 #ifdef WINDOWSNT
   /* X:\xxx is always absolute.  */
-  if (isalpha (filename[0])
+  if (isalpha ((unsigned char) filename[0])
       && filename[1] == ':' && (filename[2] == '\\' || filename[2] == '/'))
     return TRUE;