aboutsummaryrefslogtreecommitdiff
path: root/src/makepath.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2019-11-03 16:59:56 +0200
committerSergey Poznyakoff <gray@gnu.org>2019-11-03 17:07:39 +0200
commit3177d660a4c62a6acb538b0f7c54ba423698889a (patch)
treeca4dee3715063ecc96140db2a5c3ed3895c7ce51 /src/makepath.c
parent38290e9dde947f2d46e06e594d7d81644f423cd7 (diff)
downloadcpio-3177d660a4c62a6acb538b0f7c54ba423698889a.tar.gz
cpio-3177d660a4c62a6acb538b0f7c54ba423698889a.tar.bz2
Provide functions for struct cpio_file_stat management.
* src/copyin.c (long_format): Mark unchangeable argument as const. (read_name_from_file): Use cpio_realloc_c_name. (process_copy_in): Use CPIO_FILE_STAT_INITIALIZER. Call cpio_file_stat_free before return. * src/copyout.c (process_copy_out): Likewise. * src/copypass.c (link_to_name): Mark unchangeable argument as const. * src/cpiohdr.h (cpio_file_stat) <c_name_buflen>: New member, <c_tar_linkname>: Mark as const. (CPIO_FILE_STAT_INITIALIZER): New define. (cpio_file_stat_init,cpio_file_stat_free) (cpio_realloc_c_name): New protos. * src/extern.h: Fix prototypes. * src/makepath.c (make_path): Mark unchangeable argument as const. * src/util.c (create_all_directories): Mark unchangeable argument as const. (cpio_realloc_c_name): New function. (cpio_set_c_name): Use cpio_realloc_c_name. (cpio_file_stat_init,cpio_file_stat_free): New functions.
Diffstat (limited to 'src/makepath.c')
-rw-r--r--src/makepath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/makepath.c b/src/makepath.c
index 0e2184c..f937166 100644
--- a/src/makepath.c
+++ b/src/makepath.c
@@ -49,7 +49,7 @@
ownership and permissions when done, otherwise 1. */
int
-make_path (char *argpath,
+make_path (char const *argpath,
uid_t owner,
gid_t group,
const char *verbose_fmt_string)

Return to:

Send suggestions and report system problems to the System administrator.