This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch master
in repository dpkg.

commit 2dc4354934aa940ea37324e0aabde4f6379536f0
Author: Guillem Jover <guil...@debian.org>
Date:   Sat May 5 02:40:24 2018 +0200

    libdpkg: Use MD5_CTX instead of struct MD5Context
    
    The former is more portable as it's defined in more system md5.h
    implementations, such as Solaris, while the latter is not.
    
    Analysis-support-by: Bruno Ramos from IRC
---
 debian/changelog  | 2 ++
 lib/dpkg/buffer.c | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index d29543f..8eb639c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -71,6 +71,8 @@ dpkg (1.19.1) UNRELEASED; urgency=medium
       always make sure it builds, even when we use an external implementation.
     - Convert libcompat md5 module to use C99 int types, instead of mapping
       them from the BSD types at configure time.
+    - Use MD5_CTX instead of struct MD5Context, as the prevalent more portable
+      type on system's <md5.h> headers.
   * Perl modules:
     - Check that $tarname is defined before use in Dpkg::Source::Package::V1.
       Thanks to Christoph Biedl <debian.a...@manchmal.in-ulm.de>.
diff --git a/lib/dpkg/buffer.c b/lib/dpkg/buffer.c
index 5fda05f..0af4da2 100644
--- a/lib/dpkg/buffer.c
+++ b/lib/dpkg/buffer.c
@@ -38,7 +38,7 @@
 #include <dpkg/buffer.h>
 
 struct buffer_md5_ctx {
-       struct MD5Context ctx;
+       MD5_CTX ctx;
        char *hash;
 };
 

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/dpkg/dpkg.git

Reply via email to