pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/pkgtools/pkg_install/files/create



Module Name:    pkgsrc
Committed By:   joerg
Date:           Sun Oct 13 21:49:36 UTC 2019

Modified Files:
        pkgsrc/pkgtools/pkg_install/files/create: util.c

Log Message:
Use __UNCONST to remove const attributes before free.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 pkgsrc/pkgtools/pkg_install/files/create/util.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/pkgtools/pkg_install/files/create/util.c
diff -u pkgsrc/pkgtools/pkg_install/files/create/util.c:1.7 pkgsrc/pkgtools/pkg_install/files/create/util.c:1.8
--- pkgsrc/pkgtools/pkg_install/files/create/util.c:1.7 Tue Apr 17 12:52:35 2018
+++ pkgsrc/pkgtools/pkg_install/files/create/util.c     Sun Oct 13 21:49:36 2019
@@ -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);
        }



Home | Main Index | Thread Index | Old Index