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:
parent
6fd326b7ae
commit
cf01a35981
4 changed files with 10 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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 *);
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue