* emacsclient.c: conform to C89 pointer rules
This commit is contained in:
parent
5b0534c888
commit
03fc768bf7
2 changed files with 8 additions and 2 deletions
|
@ -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>
|
2011-02-02 Eli Zaretskii <eliz@gnu.org>
|
||||||
|
|
||||||
* makefile.w32-in (ETAGS_CFLAGS, CTAGS_CFLAGS): Add
|
* makefile.w32-in (ETAGS_CFLAGS, CTAGS_CFLAGS): Add
|
||||||
|
|
|
@ -854,7 +854,7 @@ unquote_argument (char *str)
|
||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
file_name_absolute_p (const unsigned char *filename)
|
file_name_absolute_p (const char *filename)
|
||||||
{
|
{
|
||||||
/* Sanity check, it shouldn't happen. */
|
/* Sanity check, it shouldn't happen. */
|
||||||
if (! filename) return FALSE;
|
if (! filename) return FALSE;
|
||||||
|
@ -867,7 +867,7 @@ file_name_absolute_p (const unsigned char *filename)
|
||||||
|
|
||||||
#ifdef WINDOWSNT
|
#ifdef WINDOWSNT
|
||||||
/* X:\xxx is always absolute. */
|
/* X:\xxx is always absolute. */
|
||||||
if (isalpha (filename[0])
|
if (isalpha ((unsigned char) filename[0])
|
||||||
&& filename[1] == ':' && (filename[2] == '\\' || filename[2] == '/'))
|
&& filename[1] == ':' && (filename[2] == '\\' || filename[2] == '/'))
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue