The following commit has been merged in the master branch:
commit ed67130303e890aecb86ae41c76a9e674ee5b3a8
Author: Guillem Jover <[email protected]>
Date: Thu Sep 24 13:35:37 2009 +0200
libdpkg: Use char instead of unsigned char for strings
diff --git a/lib/dpkg/buffer.c b/lib/dpkg/buffer.c
index 6949dc1..b20e860 100644
--- a/lib/dpkg/buffer.c
+++ b/lib/dpkg/buffer.c
@@ -40,7 +40,7 @@
struct buffer_write_md5ctx {
struct MD5Context ctx;
- unsigned char **hash;
+ char **hash;
};
static void
@@ -70,14 +70,14 @@ buffer_md5_done(buffer_data_t data)
{
struct buffer_write_md5ctx *ctx;
unsigned char digest[16], *p = digest;
- unsigned char *hash;
+ char *hash;
int i;
ctx = (struct buffer_write_md5ctx *)data->data.ptr;
*ctx->hash = hash = m_malloc(MD5HASHLEN + 1);
MD5Final(digest, &ctx->ctx);
for (i = 0; i < 16; ++i) {
- sprintf((char *)hash, "%02x", *p++);
+ sprintf(hash, "%02x", *p++);
hash += 2;
}
*hash = '\0';
--
dpkg's main repository
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]