diff options
author | Michael Paquier <michael@paquier.xyz> | 2023-01-18 08:55:26 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2023-01-18 08:55:26 +0900 |
commit | 2f31f405e1fa561db27e8dc6f7f3cb3dbd8c0c4f (patch) | |
tree | 954e09d35b777323ef07cab489dc75cbe994927d /contrib/basic_archive/basic_archive.c | |
parent | 09d465c397165f99c37e9002a4e7b281111d2580 (diff) |
Constify the arguments of copydir.h functions
This makes sure that the internal logic of these functions does not
attempt to change the value of the arguments constified, and it removes
one unconstify() in basic_archive.c.
Author: Nathan Bossart
Reviewed-by: Andrew Dunstan, Peter Eisentraut
Discussion: https://postgr.es/m/20230114231126.GA2580330@nathanxps13
Diffstat (limited to 'contrib/basic_archive/basic_archive.c')
-rw-r--r-- | contrib/basic_archive/basic_archive.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/basic_archive/basic_archive.c b/contrib/basic_archive/basic_archive.c index 28cbb6cce0e..3d29711a316 100644 --- a/contrib/basic_archive/basic_archive.c +++ b/contrib/basic_archive/basic_archive.c @@ -275,7 +275,7 @@ basic_archive_file_internal(const char *file, const char *path) * Copy the file to its temporary destination. Note that this will fail * if temp already exists. */ - copy_file(unconstify(char *, path), temp); + copy_file(path, temp); /* * Sync the temporary file to disk and move it to its final destination. |