[gnome-keyring/trust-store] [gcr] Use gpointer instead guchar for GSimpleCertificate
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-keyring/trust-store] [gcr] Use gpointer instead guchar for GSimpleCertificate
- Date: Sun, 19 Sep 2010 02:34:24 +0000 (UTC)
commit 156443cff497eb66786737c024bde99f7f5a11f0
Author: Stef Walter <stef memberwebs com>
Date: Sat Sep 18 20:34:43 2010 +0000
[gcr] Use gpointer instead guchar for GSimpleCertificate
Fix up for consistency.
gcr/gcr-simple-certificate.c | 4 ++--
gcr/gcr-simple-certificate.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gcr/gcr-simple-certificate.c b/gcr/gcr-simple-certificate.c
index d9bf516..9d28576 100644
--- a/gcr/gcr-simple-certificate.c
+++ b/gcr/gcr-simple-certificate.c
@@ -121,10 +121,10 @@ gcr_certificate_iface (GcrCertificateIface *iface)
*/
GcrCertificate*
-gcr_simple_certificate_new (const guchar *data, gsize n_data)
+gcr_simple_certificate_new (gconstpointer data, gsize n_data)
{
GcrSimpleCertificate *cert;
-
+
g_return_val_if_fail (data, NULL);
g_return_val_if_fail (n_data, NULL);
diff --git a/gcr/gcr-simple-certificate.h b/gcr/gcr-simple-certificate.h
index 6548be4..d4746d1 100644
--- a/gcr/gcr-simple-certificate.h
+++ b/gcr/gcr-simple-certificate.h
@@ -50,7 +50,7 @@ struct _GcrSimpleCertificateClass {
GType gcr_simple_certificate_get_type (void);
-GcrCertificate* gcr_simple_certificate_new (const guchar *data,
+GcrCertificate* gcr_simple_certificate_new (gconstpointer data,
gsize n_data);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]