From: Eli Zaretskii Date: Mon, 28 Jan 2013 14:41:08 +0000 (+0200) Subject: Make opendir on MS-Windows accept a 'const char *'. X-Git-Tag: emacs-24.3.90~173^2~7^2~207 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=cf01a359814c892e91261b4a2b6ae50302007db2;p=emacs.git 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. --- diff --git a/nt/ChangeLog b/nt/ChangeLog index aca1236657b..8b8628db1e2 100644 --- a/nt/ChangeLog +++ b/nt/ChangeLog @@ -1,3 +1,7 @@ +2013-01-28 Eli Zaretskii + + * inc/dirent.h (opendir): Update prototype. + 2013-01-11 Eli Zaretskii * inc/unistd.h (O_IGNORE_CTTY): Define, as it is unconditionally diff --git a/nt/inc/dirent.h b/nt/inc/dirent.h index 618f3beddf0..676b82d207b 100644 --- a/nt/inc/dirent.h +++ b/nt/inc/dirent.h @@ -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 *); diff --git a/src/ChangeLog b/src/ChangeLog index 221d525f16e..abbe4ed6dd4 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2013-01-28 Eli Zaretskii + + * w32.c (opendir): Now accepts a 'const char *'. + 2013-01-28 Dmitry Antipov Remove obsolete redisplay code. See the discussion at diff --git a/src/w32.c b/src/w32.c index f722bc5f397..6bcc8e19278 100644 --- a/src/w32.c +++ b/src/w32.c @@ -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;