* emacsclient.c: conform to C89 pointer rules

This commit is contained in:
Paul Eggert 2011-02-04 23:18:46 -08:00
parent 5b0534c888
commit 03fc768bf7
2 changed files with 8 additions and 2 deletions

View 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

View file

@ -854,7 +854,7 @@ unquote_argument (char *str)
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;