From 6bb88dba78d5c889deeec1e764f48238c87c95ef Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Tue, 24 Nov 2015 00:13:47 +0100 Subject: [PATCH 1/3] Fix warning: "pointer targets in passing argument 3 of 'CryptGenRandom' differ in signedness [-Wpointer-sign]". Bug: https://bugs.freedesktop.org/show_bug.cgi?id=93069 --- dbus/dbus-sysdeps-win.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dbus/dbus-sysdeps-win.c b/dbus/dbus-sysdeps-win.c index ca9a885..ab23856 100644 --- a/dbus/dbus-sysdeps-win.c +++ b/dbus/dbus-sysdeps-win.c @@ -2271,7 +2271,7 @@ _dbus_generate_random_bytes (DBusString *str, DBusError *error) { int old_len; - char *p; + unsigned char *p; HCRYPTPROV hprov; old_len = _dbus_string_get_length (str); @@ -2282,7 +2282,7 @@ _dbus_generate_random_bytes (DBusString *str, return FALSE; } - p = _dbus_string_get_data_len (str, old_len, n_bytes); + p = _dbus_string_get_udata_len (str, old_len, n_bytes); if (!CryptAcquireContext (&hprov, NULL, NULL, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) { -- 1.8.4.5