Remove build warnings 53/189353/3 accepted/tizen/5.0/unified/20181102.025209 accepted/tizen/unified/20180919.061631 submit/tizen/20180918.043057 submit/tizen_5.0/20181101.000006
authorpr.jung <pr.jung@samsung.com>
Mon, 17 Sep 2018 07:09:50 +0000 (16:09 +0900)
committerpr.jung <pr.jung@samsung.com>
Mon, 17 Sep 2018 07:36:50 +0000 (16:36 +0900)
Change-Id: Ia1676731696d446a3511efb700dd89c1a1100b08
Signed-off-by: pr.jung <pr.jung@samsung.com>
bus/connection.c
bus/cynara.c
dbus/dbus-transport-kdbus.c

index 1939da7..2173ce9 100644 (file)
@@ -41,6 +41,7 @@
 #ifdef DBUS_ENABLE_CYNARA
 #include <stdlib.h>
 #include <cynara-session.h>
+#include <stdio.h>
 #endif
 
 /* Trim executed commands to this length; we want to keep logs readable */
index aa54bc0..8d4d50a 100644 (file)
@@ -156,7 +156,7 @@ bus_cynara_check_privilege (BusCynara *cynara,
   if (dbus_connection_get_unix_user(connection, &uid) == FALSE)
       return BUS_RESULT_FALSE;
 
-  if (_dbus_connection_get_linux_security_label (connection, &label) == FALSE)
+  if (_dbus_connection_get_linux_security_label (connection, (char **)&label) == FALSE)
       return BUS_RESULT_FALSE;
 
   session_id = bus_connection_get_cynara_session_id (connection);
index 73ebc45..1a1806d 100755 (executable)
@@ -3751,8 +3751,8 @@ do_reading (DBusTransport *transport)
  again:
 
   /* See if we've exceeded max messages and need to disable reading */
- if (kdbus_transport->activator == NULL)
-  check_read_watch (kdbus_transport);
 if (kdbus_transport->activator == NULL)
+    check_read_watch (kdbus_transport);
 
   if (total > kdbus_transport->max_bytes_read_per_iteration)
     {