summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2013-03-21 16:01:00 (GMT)
committerWill Thompson <will.thompson@collabora.co.uk>2013-03-21 16:01:34 (GMT)
commitddb6ec63fa948164e34003aff0304d0f946d1adf (patch)
tree737a3bce7f6ba3feeaa1e525215b1539e3404d15
parent8c8360c7d6e85db1d64025b058b4b215ecee22a1 (diff)
downloadwocky-ddb6ec63fa948164e34003aff0304d0f946d1adf.tar.gz
wocky-ddb6ec63fa948164e34003aff0304d0f946d1adf.tar.xz
dump-certificates: check (and fix) coding style
-rw-r--r--examples/Makefile.am4
-rw-r--r--examples/dump-certificates.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/examples/Makefile.am b/examples/Makefile.am
index 946838d..0dc1c13 100644
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -38,7 +38,9 @@ AM_CFLAGS = \
$(ERROR_CFLAGS) \
@GLIB_CFLAGS@
-check_c_sources = $(wocky_send_message_SOURCES) \
+check_c_sources = \
+ $(wocky_dump_certificates_SOURCES) \
+ $(wocky_send_message_SOURCES) \
$(wocky_receive_messages_SOURCES) \
$(wocky_register_SOURCES) \
$(wocky_unregister_SOURCES)
diff --git a/examples/dump-certificates.c b/examples/dump-certificates.c
index de56ebf..eb22fd7 100644
--- a/examples/dump-certificates.c
+++ b/examples/dump-certificates.c
@@ -105,7 +105,7 @@ dump_tls_handler_verify_async (WockyTLSHandler *self,
gnutls_x509_crt_deinit (cert);
}
- g_ptr_array_free (chain, TRUE);
+ g_ptr_array_unref (chain);
res = g_simple_async_result_new (G_OBJECT (self), callback, user_data,
dump_tls_handler_verify_async);