summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Hay <SteveHay@planit.com>2005-11-01 10:33:48 +0000
committerSteve Hay <SteveHay@planit.com>2005-11-01 10:33:48 +0000
commitc3ff6b3084af5c20dc83804f3f4b6c8579748033 (patch)
treea04ac991fc1e7e1a2d2c161f0fe7222b076d1bb9
parenta015a77ee9cc914e7f9e8f0800206bb50400cc4a (diff)
downloadperl-c3ff6b3084af5c20dc83804f3f4b6c8579748033.tar.gz
Make PerlLIOUtime()'s filename const
Fixes a warning brought about by change #25941 (which made the filename argument const). The various implementations of PerlLIOUtime() (in NetWare/, win32/ and wince/) already take a const filename. p4raw-link: @25941 on //depot/perl: e96b369dc61077fe31b75895167f55dbce4d7519 p4raw-id: //depot/perl@25945
-rw-r--r--NetWare/nwperlhost.h2
-rw-r--r--NetWare/nwperlsys.h2
-rw-r--r--iperlsys.h2
-rw-r--r--win32/perlhost.h2
-rw-r--r--wince/perlhost.h2
5 files changed, 5 insertions, 5 deletions
diff --git a/NetWare/nwperlhost.h b/NetWare/nwperlhost.h
index a18436e402..ff3fdee158 100644
--- a/NetWare/nwperlhost.h
+++ b/NetWare/nwperlhost.h
@@ -890,7 +890,7 @@ PerlLIOUnlink(struct IPerlLIO* piPerl, const char *filename)
}
int
-PerlLIOUtime(struct IPerlLIO* piPerl, char *filename, struct utimbuf *times)
+PerlLIOUtime(struct IPerlLIO* piPerl, const char *filename, struct utimbuf *times)
{
return nw_utime(filename, times);
}
diff --git a/NetWare/nwperlsys.h b/NetWare/nwperlsys.h
index 5863e85751..ed1b632e11 100644
--- a/NetWare/nwperlsys.h
+++ b/NetWare/nwperlsys.h
@@ -780,7 +780,7 @@ PerlLIOUnlink(struct IPerlLIO* piPerl, const char *filename)
}
int
-PerlLIOUtime(struct IPerlLIO* piPerl, char *filename, struct utimbuf *times)
+PerlLIOUtime(struct IPerlLIO* piPerl, const char *filename, struct utimbuf *times)
{
return nw_utime(filename, times);
}
diff --git a/iperlsys.h b/iperlsys.h
index 8380c5ba77..bcce7197f9 100644
--- a/iperlsys.h
+++ b/iperlsys.h
@@ -632,7 +632,7 @@ typedef int (*LPLIONameStat)(struct IPerlLIO*, const char*,
typedef char* (*LPLIOTmpnam)(struct IPerlLIO*, char*);
typedef int (*LPLIOUmask)(struct IPerlLIO*, int);
typedef int (*LPLIOUnlink)(struct IPerlLIO*, const char*);
-typedef int (*LPLIOUtime)(struct IPerlLIO*, char*, struct utimbuf*);
+typedef int (*LPLIOUtime)(struct IPerlLIO*, const char*, struct utimbuf*);
typedef int (*LPLIOWrite)(struct IPerlLIO*, int, const void*,
unsigned int);
diff --git a/win32/perlhost.h b/win32/perlhost.h
index c8a0406b6c..24ed2b79ee 100644
--- a/win32/perlhost.h
+++ b/win32/perlhost.h
@@ -1065,7 +1065,7 @@ PerlLIOUnlink(struct IPerlLIO* piPerl, const char *filename)
}
int
-PerlLIOUtime(struct IPerlLIO* piPerl, char *filename, struct utimbuf *times)
+PerlLIOUtime(struct IPerlLIO* piPerl, const char *filename, struct utimbuf *times)
{
return win32_utime(filename, times);
}
diff --git a/wince/perlhost.h b/wince/perlhost.h
index dae5a86408..bcf2b4f851 100644
--- a/wince/perlhost.h
+++ b/wince/perlhost.h
@@ -1073,7 +1073,7 @@ PerlLIOUnlink(struct IPerlLIO* piPerl, const char *filename)
}
int
-PerlLIOUtime(struct IPerlLIO* piPerl, char *filename, struct utimbuf *times)
+PerlLIOUtime(struct IPerlLIO* piPerl, const char *filename, struct utimbuf *times)
{
return win32_utime(filename, times);
}