From a0d4569488eb9793efbd7810626656f0597907fe Mon Sep 17 00:00:00 2001 From: Olof Hagsand Date: Sun, 17 Jun 2018 17:58:59 +0000 Subject: [PATCH] 64-bit vars --- apps/restconf/restconf_methods.c | 2 +- lib/src/clixon_event.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/restconf/restconf_methods.c b/apps/restconf/restconf_methods.c index b1e05378..5aeded27 100644 --- a/apps/restconf/restconf_methods.c +++ b/apps/restconf/restconf_methods.c @@ -254,7 +254,7 @@ api_data_get2(clicon_handle h, else{ if (xpath_vec(xret, "%s", &xvec, &xlen, path) < 0) goto done; - clicon_debug(1, "%s: xpath:%s xlen:%d", __FUNCTION__, path, xlen); + clicon_debug(1, "%s: xpath:%s xlen:%d", __FUNCTION__, path, (int)xlen); if (use_xml){ for (i=0; ie_next; - clicon_debug(2, "%s timeout: %s[%x]", - __FUNCTION__, e->e_string, (int)e->e_arg); + clicon_debug(2, "%s timeout: %s[%lx]", + __FUNCTION__, e->e_string, (intptr_t)e->e_arg); if ((*e->e_fn)(0, e->e_arg) < 0){ free(e); goto err; @@ -331,8 +331,8 @@ event_loop(void) break; e_next = e->e_next; if(e->e_type == EVENT_FD && FD_ISSET(e->e_fd, &fdset)){ - clicon_debug(2, "%s: FD_ISSET: %s[%x]", - __FUNCTION__, e->e_string, (int)e->e_arg); + clicon_debug(2, "%s: FD_ISSET: %s[%lx]", + __FUNCTION__, e->e_string, (intptr_t)e->e_arg); if ((*e->e_fn)(e->e_fd, e->e_arg) < 0){ clicon_debug(1, "%s Error in: %s", __FUNCTION__, e->e_string); goto err;