From b6996c23f176b50e7eff9a964e24df056c6bf0ae Mon Sep 17 00:00:00 2001 From: Adam Michalski Date: Fri, 18 Feb 2022 12:59:10 +0100 Subject: [PATCH] p2p-gdbus: Remove unnecessary connection capabilities checks Since we don't use fd passing in our tests, the checks for fd passing capabilities have been removed. Change-Id: I62703284cf71c31aa679ed4e1807336ddbb97870 --- benchmark/p2p-gdbus.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/benchmark/p2p-gdbus.c b/benchmark/p2p-gdbus.c index 407a3d7..1eb137f 100644 --- a/benchmark/p2p-gdbus.c +++ b/benchmark/p2p-gdbus.c @@ -213,11 +213,7 @@ static gboolean on_new_connection(GDBusServer *server, s = g_credentials_to_string(credentials); if (state->verbose) - g_print("Client connected.\n" - "Peer credentials: %s\n" - "Negotiated capabilities: unix-fd-passing=%d\n", - s, - g_dbus_connection_get_capabilities(connection) & G_DBUS_CAPABILITY_FLAGS_UNIX_FD_PASSING); + g_print("Server: Client connected. Peer credentials: %s\n", s); g_object_ref(connection); g_signal_connect(connection, "closed", G_CALLBACK(connection_closed), (gpointer)state); @@ -363,9 +359,7 @@ void Send(int size, const char *name, const char *path, const char *number, bool } if (verbose) { - g_print("Client connected.\n" - "Negotiated capabilities: unix-fd-passing=%d\n", - g_dbus_connection_get_capabilities(connection) & G_DBUS_CAPABILITY_FLAGS_UNIX_FD_PASSING); + g_print("Client connected.\n"); } sleep(2); -- 2.34.1