Fix build warnings 56/195056/5 accepted/tizen/unified/20181211.064649 submit/tizen/20181210.103449
authorCheoleun Moon <chleun.moon@samsung.com>
Mon, 10 Dec 2018 08:20:53 +0000 (17:20 +0900)
committercheoleun moon <chleun.moon@samsung.com>
Mon, 10 Dec 2018 10:28:38 +0000 (10:28 +0000)
Change-Id: Id6e3528855fa18ea5ecb310c1334199dfd128ea8
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
packaging/mobileap-agent.spec
src/mobileap_iptables.c
src/mobileap_softap.c

index fc10173..33f0c30 100644 (file)
@@ -1,6 +1,6 @@
 Name: mobileap-agent
 Summary: Mobile AP daemon for setting tethering environments
-Version: 1.0.133
+Version: 1.0.134
 Release: 1
 Group: System/Network
 License: Apache-2.0
index 4ac6ad5..390f516 100755 (executable)
@@ -427,8 +427,7 @@ int _get_data_usage(const char *src, const char *dest, unsigned long long *tx,
        fp = fopen(DATA_USAGE_FILE, "r");
        if (fp == NULL) {
                ERR("%s open failed\n", DATA_USAGE_FILE); //LCOV_EXCL_LINE
-               strerror_r(errno, err_buf, sizeof(err_buf));
-               ERR("%s\n", err_buf); //LCOV_EXCL_LINE
+               ERR("%s\n", strerror_r(errno, err_buf, sizeof(err_buf))); //LCOV_EXCL_LINE
                return MOBILE_AP_ERROR_INTERNAL;
        }
 
@@ -448,8 +447,7 @@ int _get_data_usage(const char *src, const char *dest, unsigned long long *tx,
        fp = fopen(DATA_USAGE_FILE, "r");
        if (fp == NULL) {
                ERR("%s open failed\n", DATA_USAGE_FILE); //LCOV_EXCL_LINE
-               strerror_r(errno, err_buf, sizeof(err_buf));
-               ERR("%s\n", err_buf); //LCOV_EXCL_LINE
+               ERR("%s\n", strerror_r(errno, err_buf, sizeof(err_buf))); //LCOV_EXCL_LINE
                return MOBILE_AP_ERROR_INTERNAL;
        }
 
index d18c14f..68bbd6e 100755 (executable)
@@ -390,8 +390,7 @@ static int __terminate_hostapd()
 
        ret = unlink(HOSTAPD_CONF_FILE);
        if (ret < 0) {
-               strerror_r(errno, buf, sizeof(buf));
-               ERR("unlink is failed : %s\n", buf); //LCOV_EXCL_LINE
+               ERR("unlink is failed : %s\n", strerror_r(errno, buf, sizeof(buf))); //LCOV_EXCL_LINE
        }
 
        return MOBILE_AP_ERROR_NONE;
@@ -421,8 +420,7 @@ static int __send_hostapd_req(int fd, const char *req, const int req_len,
 
        ret = send(fd, req, req_len, 0);
        if (ret < 0) {
-               strerror_r(errno, err_buf, sizeof(err_buf));
-               ERR("send is failed : %s\n", err_buf); //LCOV_EXCL_LINE
+               ERR("send is failed : %s\n", strerror_r(errno, err_buf, sizeof(err_buf))); //LCOV_EXCL_LINE
                return MOBILE_AP_ERROR_INTERNAL;
        }
 
@@ -1415,8 +1413,7 @@ int _mh_core_terminate_dhcp_server(void)
 
        ret = unlink(DNSMASQ_CONF_FILE);
        if (ret < 0) {
-               strerror_r(errno, buf, sizeof(buf));
-               ERR("unlink is failed : %s\n", buf); //LCOV_EXCL_LINE
+               ERR("unlink is failed : %s\n", strerror_r(errno, buf, sizeof(buf))); //LCOV_EXCL_LINE
        }
 
        DBG("dnsmasq is disabled");