summaryrefslogtreecommitdiff
path: root/src/lib/eina
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-02-12 00:29:01 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-02-12 00:32:22 +0900
commitba3ac16b62812bc0410ed734078d8108f67a9367 (patch)
tree81a5ed93549c4f0b72f70cf6c24c37cf90a23392 /src/lib/eina
parentc1c7ad836064e3cdb9e89aaa4ac6bb1d216e2b6e (diff)
evlog/log bt - fix size casting tot stop warning when printing errs
Diffstat (limited to 'src/lib/eina')
-rw-r--r--src/lib/eina/eina_debug_bt.c4
-rw-r--r--src/lib/eina/eina_evlog.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/eina/eina_debug_bt.c b/src/lib/eina/eina_debug_bt.c
index d9f80f123a..ac04e942bf 100644
--- a/src/lib/eina/eina_debug_bt.c
+++ b/src/lib/eina/eina_debug_bt.c
@@ -36,8 +36,8 @@ _eina_debug_dump_fhandle_bt(FILE *f, void **bt, int btlen)
36 // anything here 36 // anything here
37 if ((dladdr(bt[i], &info)) && (info.dli_fname[0])) 37 if ((dladdr(bt[i], &info)) && (info.dli_fname[0]))
38 { 38 {
39 offset = (unsigned long long)bt[i]; 39 offset = (unsigned long long)(uintptr_t)bt[i];
40 base = (unsigned long long)info.dli_fbase; 40 base = (unsigned long long)(uintptr_t)info.dli_fbase;
41 file = _eina_debug_file_get(info.dli_fname); 41 file = _eina_debug_file_get(info.dli_fname);
42 } 42 }
43 // rely on normal libc buffering for file ops to avoid syscalls. 43 // rely on normal libc buffering for file ops to avoid syscalls.
diff --git a/src/lib/eina/eina_evlog.c b/src/lib/eina/eina_evlog.c
index 8c0685799a..d1b3a4be3f 100644
--- a/src/lib/eina/eina_evlog.c
+++ b/src/lib/eina/eina_evlog.c
@@ -150,8 +150,8 @@ eina_evlog(const char *event, void *obj, double srctime, const char *detail)
150 item = (Eina_Evlog_Item *)strings; 150 item = (Eina_Evlog_Item *)strings;
151 item->tim = now; 151 item->tim = now;
152 item->srctim = srctime; 152 item->srctim = srctime;
153 item->thread = (unsigned long long)pthread_self(); 153 item->thread = (unsigned long long)(uintptr_t)pthread_self();
154 item->obj = (unsigned long long)obj; 154 item->obj = (unsigned long long)(uintptr_t)obj;
155 item->event_offset = sizeof(Eina_Evlog_Item); 155 item->event_offset = sizeof(Eina_Evlog_Item);
156 item->detail_offset = detail_offset; 156 item->detail_offset = detail_offset;
157 item->event_next = size; 157 item->event_next = size;