Fix build warnings 85/193185/1 accepted/tizen/unified/20181119.153030 submit/tizen/20181119.042228
authorCheoleun Moon <chleun.moon@samsung.com>
Thu, 15 Nov 2018 23:09:49 +0000 (08:09 +0900)
committerCheoleun Moon <chleun.moon@samsung.com>
Thu, 15 Nov 2018 23:11:59 +0000 (08:11 +0900)
Change-Id: Ieab4c1ccc0654e284ee35e6737963ccec0fa4f52
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
src/inm-reacher.c
src/inm-trace-route.c

index 48df941b980a751607db32c65b8c683c25bc4ec7..2899661c4a9e9fb73b06b6e86c2beb828c693853 100644 (file)
@@ -428,12 +428,8 @@ static gboolean __timer_cb(gpointer data)
 
 static int __update_timeout_cb(CURLM *multi, long timeout_ms, void *user_data)
 {
-       struct timeval timeout;
        reacher_data_s *reacher = (reacher_data_s *)user_data;
 
-       timeout.tv_sec = timeout_ms/1000;
-       timeout.tv_usec = (timeout_ms%1000)*1000;
-
        if (timeout_ms == -1) {
                if (reacher->timer_source_id) {
                        g_source_remove(reacher->timer_source_id);
index 523e838d228c55f0694039503de16172b1ed6acf..d51f65e60d5569fecb4dc5e3d01387271ffb2152 100644 (file)
@@ -189,7 +189,7 @@ static inline int __resolve_target(gchar *target, gint port, struct addrinfo **p
        hints.ai_family = AF_INET;
        hints.ai_socktype = SOCK_DGRAM;
        hints.ai_protocol = IPPROTO_UDP;
-       g_snprintf(&buf, sizeof(buf), "%d", port);
+       g_snprintf(buf, sizeof(buf), "%d", port);
 
        res = getaddrinfo(target, buf, &hints, p_addr_info);
        INM_LOGI("getaddrinfo res %d %s %s", res, target, buf);