[gnome-keyring/wip/cosimoc/gdbus-fixes: 2/4] dbus: use sizeof(guchar) instead of sizeof(guint8)
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-keyring/wip/cosimoc/gdbus-fixes: 2/4] dbus: use sizeof(guchar) instead of sizeof(guint8)
- Date: Mon, 24 Aug 2015 15:48:08 +0000 (UTC)
commit 6bcaf2c9426624db17487f454fbfe3a1fd325d41
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Sat Aug 15 12:56:50 2015 -0700
dbus: use sizeof(guchar) instead of sizeof(guint8)
Does not make a difference, but it makes more logical sense.
daemon/dbus/gkd-secret-secret.c | 4 ++--
daemon/dbus/gkd-secret-session.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/daemon/dbus/gkd-secret-secret.c b/daemon/dbus/gkd-secret-secret.c
index 12bf62e..691a535 100644
--- a/daemon/dbus/gkd-secret-secret.c
+++ b/daemon/dbus/gkd-secret-secret.c
@@ -96,11 +96,11 @@ gkd_secret_secret_parse (GkdSecretService *service,
/* parameter */
parameter_variant = g_variant_get_child_value (variant, 1);
- parameter = g_variant_get_fixed_array (parameter_variant, &n_parameter, sizeof (guint8));
+ parameter = g_variant_get_fixed_array (parameter_variant, &n_parameter, sizeof (guchar));
/* value */
value_variant = g_variant_get_child_value (variant, 2);
- value = g_variant_get_fixed_array (value_variant, &n_value, sizeof (guint8));
+ value = g_variant_get_fixed_array (value_variant, &n_value, sizeof (guchar));
/* Try to lookup the session */
session = gkd_secret_service_lookup_session (service, path, sender);
diff --git a/daemon/dbus/gkd-secret-session.c b/daemon/dbus/gkd-secret-session.c
index 11950bf..0108ac0 100644
--- a/daemon/dbus/gkd-secret-session.c
+++ b/daemon/dbus/gkd-secret-session.c
@@ -209,7 +209,7 @@ aes_negotiate (GkdSecretSession *self,
return FALSE;
}
- input = g_variant_get_fixed_array (input_variant, &n_input, sizeof (guint8));
+ input = g_variant_get_fixed_array (input_variant, &n_input, sizeof (guchar));
ret = aes_derive_key (session, priv, input, n_input, &key);
gck_object_destroy (priv, NULL, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]