]> git.0d.be Git - empathy.git/commitdiff
coding style fixes
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 6 Jan 2014 14:27:03 +0000 (15:27 +0100)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 6 Jan 2014 14:41:30 +0000 (15:41 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=721484

tests/empathy-tls-test.c
tests/mock-pkcs11.c

index d48bfccfd065da46b51c5cd82a1205b21999885d..91b05761f9b9ebb44157bc40ffb4606c4f3650e7 100644 (file)
@@ -52,7 +52,8 @@ mock_tls_certificate_init (MockTLSCertificate *self)
 {
   self->state = TP_TLS_CERTIFICATE_STATE_PENDING;
   self->cert_type = g_strdup ("x509");
-  self->cert_data = g_ptr_array_new_with_free_func((GDestroyNotify) g_array_unref);
+  self->cert_data = g_ptr_array_new_with_free_func ((GDestroyNotify)
+      g_array_unref);
   self->rejections = g_ptr_array_new ();
 }
 
@@ -185,7 +186,7 @@ mock_tls_certificate_iface_init (gpointer g_iface,
         gpointer iface_data)
 {
   TpSvcAuthenticationTLSCertificateClass *klass =
-    (TpSvcAuthenticationTLSCertificateClass*)g_iface;
+    (TpSvcAuthenticationTLSCertificateClass *) g_iface;
 
   tp_svc_authentication_tls_certificate_implement_accept (klass,
       mock_tls_certificate_accept);
@@ -227,7 +228,7 @@ mock_tls_certificate_assert_rejected (MockTLSCertificate *self,
 }
 #endif
 
-static MockTLSCertificate*
+static MockTLSCertificate *
 mock_tls_certificate_new_and_register (TpDBusDaemon *dbus,
         const gchar *path,
         ...)
index 572221acc6f4fc8776866fb5e927caf2595be70d..be081bc9d9edf5d9e2d0221341d4776d7f60a377 100644 (file)
@@ -70,7 +70,7 @@ typedef struct {
 static void
 free_session (gpointer data)
 {
-  Session *sess = (Session*)data;
+  Session *sess = (Session *) data;
   g_list_free (sess->matches);
   g_free (sess);
 }
@@ -119,7 +119,7 @@ mock_C_Initialize (CK_VOID_PTR init_args)
   args = (CK_C_INITIALIZE_ARGS_PTR)init_args;
   if (args)
     {
-      g_return_val_if_fail(
+      g_return_val_if_fail (
           (args->CreateMutex == NULL && args->DestroyMutex == NULL &&
            args->LockMutex == NULL && args->UnlockMutex == NULL) ||
           (args->CreateMutex != NULL && args->DestroyMutex != NULL &&