1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-27 10:54:40 +00:00

Make opendir on MS-Windows accept a 'const char *'.

src/w32.c (opendir): Now accepts a 'const char *'.

 nt/inc/dirent.h (opendir): Update prototype.
This commit is contained in:
Eli Zaretskii 2013-01-28 16:41:08 +02:00
parent 6fd326b7ae
commit cf01a35981
4 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2013-01-28 Eli Zaretskii <eliz@gnu.org>
* inc/dirent.h (opendir): Update prototype.
2013-01-11 Eli Zaretskii <eliz@gnu.org>
* inc/unistd.h (O_IGNORE_CTTY): Define, as it is unconditionally

View File

@ -30,7 +30,7 @@ typedef struct
char dd_buf[DIRBLKSIZ]; /* directory block */
} DIR; /* stream data from opendir() */
extern DIR *opendir (char *);
extern DIR *opendir (const char *);
extern struct dirent *readdir (DIR *);
extern void seekdir (DIR *, long);
extern void closedir (DIR *);

View File

@ -1,3 +1,7 @@
2013-01-28 Eli Zaretskii <eliz@gnu.org>
* w32.c (opendir): Now accepts a 'const char *'.
2013-01-28 Dmitry Antipov <dmantipov@yandex.ru>
Remove obsolete redisplay code. See the discussion at

View File

@ -2809,7 +2809,7 @@ static char *read_unc_volume (HANDLE, char *, int);
static void close_unc_volume (HANDLE);
DIR *
opendir (char *filename)
opendir (const char *filename)
{
DIR *dirp;