This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch master in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=7b8236d8d782aa578070b10ed736afd423d08dc9 commit 7b8236d8d782aa578070b10ed736afd423d08dc9 Author: Guillem Jover <[email protected]> AuthorDate: Tue Feb 4 04:33:11 2020 +0100 libdpkg: Define new VARBUF_OBJECT macro --- debian/changelog | 1 + lib/dpkg/varbuf.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/debian/changelog b/debian/changelog index 7bf81a10e..68eeb3d15 100644 --- a/debian/changelog +++ b/debian/changelog @@ -195,6 +195,7 @@ dpkg (1.20.0) UNRELEASED; urgency=medium - dselect: Fix variable types to avoid needing old-style casts. - libcompat: Disarm libselinux setexecfilecon() declaration for libcompat-test. + - libdpkg: Define new VARBUF_OBJECT macro. * Build system: - Bump minimal Perl version to 5.24.1. - Add a serial versioning to the m4 files. diff --git a/lib/dpkg/varbuf.h b/lib/dpkg/varbuf.h index 06f09f5e8..707e4e919 100644 --- a/lib/dpkg/varbuf.h +++ b/lib/dpkg/varbuf.h @@ -72,6 +72,8 @@ struct varbuf { #define VARBUF_INIT { 0, 0, NULL } +#define VARBUF_OBJECT (struct varbuf)VARBUF_INIT + struct varbuf *varbuf_new(size_t size); void varbuf_init(struct varbuf *v, size_t size); void varbuf_grow(struct varbuf *v, size_t need_size); -- Dpkg.Org's dpkg

