From 0e06f75d89a762be9731eb40ee14d8535e1ae184 Mon Sep 17 00:00:00 2001 From: Steve Hay Date: Fri, 24 Jun 2005 12:27:45 +0000 Subject: Make opendir() filename const in Win32-land & friends That fact that it wasn't const already was highlighted by a warning from pp_open_dir() generated by change 24743. Rather than undo the const change in pp_open_dir(), this seems to make more sense. Hope I haven't broken Netware or WinCE. p4raw-id: //depot/perl@24974 --- NetWare/nw5.c | 2 +- NetWare/nwperlhost.h | 2 +- NetWare/nwperlsys.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'NetWare') diff --git a/NetWare/nw5.c b/NetWare/nw5.c index 488111ce94..397d41a205 100644 --- a/NetWare/nw5.c +++ b/NetWare/nw5.c @@ -567,7 +567,7 @@ nw_rmdir(const char *dir) } DIR * -nw_opendir(char *filename) +nw_opendir(const char *filename) { char *buff = NULL; int len = 0; diff --git a/NetWare/nwperlhost.h b/NetWare/nwperlhost.h index 002bc676e0..a18436e402 100644 --- a/NetWare/nwperlhost.h +++ b/NetWare/nwperlhost.h @@ -961,7 +961,7 @@ PerlDirClose(struct IPerlDir* piPerl, DIR *dirp) } DIR* -PerlDirOpen(struct IPerlDir* piPerl, char *filename) +PerlDirOpen(struct IPerlDir* piPerl, const char *filename) { return nw_opendir(filename); } diff --git a/NetWare/nwperlsys.h b/NetWare/nwperlsys.h index 0d731d1fcf..5863e85751 100644 --- a/NetWare/nwperlsys.h +++ b/NetWare/nwperlsys.h @@ -184,7 +184,7 @@ PerlDirClose(struct IPerlDir* piPerl, DIR *dirp) } DIR* -PerlDirOpen(struct IPerlDir* piPerl, char *filename) +PerlDirOpen(struct IPerlDir* piPerl, const char *filename) { return nw_opendir(filename); } -- cgit v1.2.1