summaryrefslogtreecommitdiff
path: root/pkgtools/pkg_install
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2019-10-13 21:49:36 +0000
committerjoerg <joerg@pkgsrc.org>2019-10-13 21:49:36 +0000
commit33d43e2eb6bd85fa7278bca134507752d1434b02 (patch)
treecdd01c9924e3f52a1b921a3a0688ac5b82ebd848 /pkgtools/pkg_install
parent930425644ff24831b65381c63397e4bd9e361c51 (diff)
downloadpkgsrc-33d43e2eb6bd85fa7278bca134507752d1434b02.tar.gz
Use __UNCONST to remove const attributes before free.
Diffstat (limited to 'pkgtools/pkg_install')
-rw-r--r--pkgtools/pkg_install/files/create/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgtools/pkg_install/files/create/util.c b/pkgtools/pkg_install/files/create/util.c
index 8d535f0ca1f..ba8f5e499ee 100644
--- a/pkgtools/pkg_install/files/create/util.c
+++ b/pkgtools/pkg_install/files/create/util.c
@@ -147,8 +147,8 @@ void
free_memory_file(struct memory_file *file)
{
if (file != NULL) {
- free((char *)file->owner);
- free((char *)file->group);
+ free(__UNCONST(file->owner));
+ free(__UNCONST(file->group));
free(file->data);
free(file);
}