summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorTom Lane2008-04-18 17:05:45 +0000
committerTom Lane2008-04-18 17:05:45 +0000
commitb8e5581d762acceda22dd7347ed43d2e013a6df1 (patch)
treed86cf7b85b76240859680df5048ba75dcedd5e55 /src/include
parent9cb91f90c95906347cd4d42fcf24a12a6e6a679e (diff)
Fix rmtree() so that it keeps going after failure to remove any individual
file; the idea is that we should clean up as much as we can, even if there's some problem removing one file. Make the error messages a bit less misleading, too. In passing, const-ify function arguments.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/port.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/port.h b/src/include/port.h
index ae482bd855..1fd1a536f9 100644
--- a/src/include/port.h
+++ b/src/include/port.h
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/port.h,v 1.121 2008/04/16 14:19:56 adunstan Exp $
+ * $PostgreSQL: pgsql/src/include/port.h,v 1.122 2008/04/18 17:05:45 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -48,7 +48,7 @@ extern bool get_home_path(char *ret_path);
extern void get_parent_directory(char *path);
/* port/dirmod.c */
-extern char **pgfnames(char *path);
+extern char **pgfnames(const char *path);
extern void pgfnames_cleanup(char **filenames);
/*
@@ -279,7 +279,7 @@ extern int pgsymlink(const char *oldpath, const char *newpath);
extern void copydir(char *fromdir, char *todir, bool recurse);
-extern bool rmtree(char *path, bool rmtopdir);
+extern bool rmtree(const char *path, bool rmtopdir);
/*
* stat() is not guaranteed to set the st_size field on win32, so we