Fix build warnings for gcc 9
[platform/core/connectivity/net-config.git] / src / mptcp-internal.c
index 69bdf7b..206cc6d 100755 (executable)
@@ -1,5 +1,4 @@
 #include <glib.h>
-#include <sys/sysctl.h>
 #include <string.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -25,7 +24,7 @@ static gboolean __write_mptcp_parameter(const char* key, const char* value)
                return FALSE;
        }
 
-       DBG("write mptcp parameter. len: %d, value: %s", strlen(value), value);
+       DBG("write mptcp parameter. len: %zd, value: %s", strlen(value), value);
        if (write(fd, value, strlen(value)) < 0) {
                ERR("Fail to write %s to %s", value, path);
                close(fd);
@@ -95,7 +94,7 @@ gint mptcp_get_enabled()
        int enabled = -1;
 
        if ((buf = __read_mptcp_parameter(sysctlname)) == NULL)  {
-               ERR("Fail to read %s, sysctlname");
+               ERR("Fail to read %s", sysctlname);
                return -1;
        }