The following commit has been merged in the master branch:
commit f4d295de5a1b445290e8138c29439776701a6bae
Author: Guillem Jover <[email protected]>
Date:   Sun Dec 11 06:52:34 2011 +0100

    libcompat: Add missing ‘*’ in asprintf() and vasprintf() declarations

diff --git a/debian/changelog b/debian/changelog
index 640e56f..9410c49 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -42,6 +42,7 @@ dpkg (1.16.2) UNRELEASED; urgency=low
   * Stop using brace expansion to install man pages by using dh_installman
     instead of dh_install, the former does not abort on empty glob expansion.
   * Do not use absolute paths for programs in perl and shell code.
+  * Add missing ‘*’ in asprintf() and vasprintf() compat declarations.
 
   [ Raphaël Hertzog ]
   * Update Dpkg::Shlibs to look into multiarch paths when cross-building
diff --git a/lib/compat/compat.h b/lib/compat/compat.h
index 4086bdd..4bd9d9b 100644
--- a/lib/compat/compat.h
+++ b/lib/compat/compat.h
@@ -60,8 +60,8 @@ int vsnprintf(char *buf, size_t maxsize, const char *fmt, 
va_list args);
 #ifndef HAVE_ASPRINTF
 #include <stdarg.h>
 
-int asprintf(char *str, char const *fmt, ...);
-int vasprintf(char *str, const char *fmt, va_list args);
+int asprintf(char **str, char const *fmt, ...);
+int vasprintf(char **str, const char *fmt, va_list args);
 #endif
 
 #ifndef HAVE_STRNDUP

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to