Commit cf01a359 authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

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.
parent 6fd326b7
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 *);
......
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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment