File: client-Remove-superfluous-casts.patch

package info (click to toggle)
libssc 0.3.0-1
  • links: PTS
  • area: main
  • in suites: experimental
  • size: 1,840 kB
  • sloc: ansic: 3,551; python: 647; sh: 15; makefile: 11
file content (38 lines) | stat: -rw-r--r-- 1,232 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
From: =?utf-8?q?Guido_G=C3=BCnther?= <agx@sigxcpu.org>
Date: Thu, 8 Jan 2026 13:08:19 +0100
Subject: client: Remove superfluous casts
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit

Would be good to give callbacks the correct signature to avoid
hard to find problems but let's at least drop the ones that are
correct already and don't need a cast.

Signed-off-by: Guido Günther <agx@sigxcpu.org>
---
 src/libssc-client.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/libssc-client.c b/src/libssc-client.c
index 1ffe1f0..5530fe1 100644
--- a/src/libssc-client.c
+++ b/src/libssc-client.c
@@ -400,7 +400,7 @@ bus_new_ready (GObject *source, GAsyncResult *res, gpointer user_data)
 	/* QRTR node ready, create QMI device */
 	qmi_device_new_from_node (node,
 		g_task_get_cancellable (task),
-		(GAsyncReadyCallback)device_new_ready,
+		device_new_ready,
 		task);
 }
 
@@ -477,7 +477,7 @@ initable_init_async (GAsyncInitable *initable, int io_priority, GCancellable *ca
 		/* Open right node on QRTR bus */
 		qrtr_bus_new (1000, /* ms */
 			      NULL,
-			      (GAsyncReadyCallback)bus_new_ready,
+			      bus_new_ready,
 			      task);
 		return;
 	}