Received: by mail.netbsd.org (Postfix, from userid 605) id 6510884F0F; Sun, 13 Oct 2019 21:49:37 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id E218884E1D for ; Sun, 13 Oct 2019 21:49:36 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id 6vOLPB-jjupY for ; Sun, 13 Oct 2019 21:49:36 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 7A76984DD3 for ; Sun, 13 Oct 2019 21:49:36 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 7788CFBF4; Sun, 13 Oct 2019 21:49:36 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1571003376273710" MIME-Version: 1.0 Date: Sun, 13 Oct 2019 21:49:36 +0000 From: "Joerg Sonnenberger" Subject: CVS commit: pkgsrc/pkgtools/pkg_install/files/create To: pkgsrc-changes@NetBSD.org Reply-To: joerg@netbsd.org X-Mailer: log_accum Message-Id: <20191013214936.7788CFBF4@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1571003376273710 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" 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. --_----------=_1571003376273710 Content-Disposition: inline Content-Length: 603 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii 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); } --_----------=_1571003376273710--