[glib-networking] Fix style and parameter type in a callback
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-networking] Fix style and parameter type in a callback
- Date: Tue, 4 Dec 2018 15:09:08 +0000 (UTC)
commit 76bb451efa6a679c3ef9bf3dbe3500bf92fc69bf
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Mon Dec 3 21:37:25 2018 -0600
Fix style and parameter type in a callback
This is the *server*'s accept-certificate callback, not the client's.
It's not a GTlsClientConnection, it's a GTlsServerConnection. Fix the
type to GTlsConnection and restyle
tls/tests/connection.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/tls/tests/connection.c b/tls/tests/connection.c
index fe0f124..41d73c8 100644
--- a/tls/tests/connection.c
+++ b/tls/tests/connection.c
@@ -187,8 +187,10 @@ start_server (TestConnection *test)
}
static gboolean
-on_accept_certificate (GTlsClientConnection *conn, GTlsCertificate *cert,
- GTlsCertificateFlags errors, gpointer user_data)
+on_accept_certificate (GTlsConnection *conn,
+ GTlsCertificate *cert,
+ GTlsCertificateFlags errors,
+ gpointer user_data)
{
TestConnection *test = user_data;
return errors == test->accept_flags;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]