Fix build warnings for gcc 9 50/220950/1 accepted/tizen/unified/20191227.142754 submit/tizen/20191226.234511
authorSemun Lee <semun.lee@samsung.com>
Thu, 26 Dec 2019 05:05:42 +0000 (14:05 +0900)
committerSemun Lee <semun.lee@samsung.com>
Thu, 26 Dec 2019 05:05:42 +0000 (14:05 +0900)
- remove #include <sys/sysctl.h>
- fix wrong log format

Change-Id: I5a5ecc22b4b579810755e3a9891a05444a6c5f41
Signed-off-by: Semun Lee <semun.lee@samsung.com>
src/mptcp-internal.c
src/wifi-config.c

index ff197bc..206cc6d 100755 (executable)
@@ -1,5 +1,4 @@
 #include <glib.h>
-#include <sys/sysctl.h>
 #include <string.h>
 #include <stdio.h>
 #include <stdlib.h>
index e81bc43..680246d 100755 (executable)
@@ -1374,7 +1374,7 @@ gboolean handle_save_configuration(Wifi *wifi, GDBusMethodInvocation *context,
                                        if (__remove_configuration(profileName) != TRUE)
                                                DBG("Failed to remove profile: [%s]", profileName);
                                } else
-                                       ERR("Profile: [%s] does not exist", profileName);
+                                       ERR("Profile: [%s] does not exist", file);
 
                                g_free(profileName);
                        }