File: 71-OobsService-cast.patch

package info (click to toggle)
gnome-system-tools 3.0.0-11.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 17,840 kB
  • sloc: ansic: 16,544; xml: 14,114; sh: 10,794; makefile: 402
file content (15 lines) | stat: -rw-r--r-- 522 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: fix error on casting GObject pointer to OobsService pointer.
Author: Andriy Grytsenko <andrej@rep.kiev.ua>
Bug-Debian: https://bugs.debian.org/1075028

--- a/src/time/time-tool.c
+++ b/src/time/time-tool.c
@@ -106,7 +106,7 @@
 		role = gst_service_get_role (OOBS_SERVICE (service));
 
 		if (role == GST_ROLE_NTP_SERVER)
-			tool->ntp_service = g_object_ref (service);
+			tool->ntp_service = (OobsService *)g_object_ref (service);
 
 		g_object_unref (service);
 		valid = oobs_list_iter_next (list, &iter);