summaryrefslogtreecommitdiff
path: root/src/bin/efreet
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-01-15 12:26:42 +0000
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-01-15 12:26:42 +0000
commitae6a26b8ed4ec248cc089c6f2ef3649f78a57190 (patch)
treee538291b9461088febaf8d41eaa06b2a3d8517da /src/bin/efreet
parente2589e3b48c4d05db198f7729708ac8bca6f42be (diff)
efreet - fix warnings on windows to do with size casting
no actual bug - just warnings
Diffstat (limited to 'src/bin/efreet')
-rw-r--r--src/bin/efreet/efreet_mime_cache_create.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bin/efreet/efreet_mime_cache_create.c b/src/bin/efreet/efreet_mime_cache_create.c
index b179316677..68e30179ee 100644
--- a/src/bin/efreet/efreet_mime_cache_create.c
+++ b/src/bin/efreet/efreet_mime_cache_create.c
@@ -296,7 +296,7 @@ store_cache(const char *out)
296 goto write_error; 296 goto write_error;
297 EINA_LIST_FOREACH(mimes_str_offsets, l, ptr) 297 EINA_LIST_FOREACH(mimes_str_offsets, l, ptr)
298 { 298 {
299 val = (int)((long)ptr) + str_start; 299 val = (int)((size_t)ptr) + str_start;
300 if (fwrite(&val, sizeof(val), 1, f) != 1) 300 if (fwrite(&val, sizeof(val), 1, f) != 1)
301 goto write_error; 301 goto write_error;
302 } 302 }
@@ -307,12 +307,12 @@ store_cache(const char *out)
307 ll = extn_mimes_sorted; 307 ll = extn_mimes_sorted;
308 EINA_LIST_FOREACH(extn_mimes_str_offsets, l, ptr) 308 EINA_LIST_FOREACH(extn_mimes_str_offsets, l, ptr)
309 { 309 {
310 val = (int)((long)ptr) + str_start + mimes_str_len; 310 val = (int)((size_t)ptr) + str_start + mimes_str_len;
311 if (fwrite(&val, sizeof(val), 1, f) != 1) 311 if (fwrite(&val, sizeof(val), 1, f) != 1)
312 goto write_error; 312 goto write_error;
313 s = eina_hash_find(extn_mimes, ll->data); 313 s = eina_hash_find(extn_mimes, ll->data);
314 ptr = find_off(s, mimes_sorted, mimes_str_offsets); 314 ptr = find_off(s, mimes_sorted, mimes_str_offsets);
315 val = (int)((long)ptr) + str_start; 315 val = (int)((size_t)ptr) + str_start;
316 if (fwrite(&val, sizeof(val), 1, f) != 1) 316 if (fwrite(&val, sizeof(val), 1, f) != 1)
317 goto write_error; 317 goto write_error;
318 ll = ll->next; 318 ll = ll->next;
@@ -324,12 +324,12 @@ store_cache(const char *out)
324 ll = glob_mimes_sorted; 324 ll = glob_mimes_sorted;
325 EINA_LIST_FOREACH(glob_mimes_str_offsets, l, ptr) 325 EINA_LIST_FOREACH(glob_mimes_str_offsets, l, ptr)
326 { 326 {
327 val = (int)((long)ptr) + str_start + mimes_str_len + extn_mimes_str_len; 327 val = (int)((size_t)ptr) + str_start + mimes_str_len + extn_mimes_str_len;
328 if (fwrite(&val, sizeof(val), 1, f) != 1) 328 if (fwrite(&val, sizeof(val), 1, f) != 1)
329 goto write_error; 329 goto write_error;
330 s = eina_hash_find(glob_mimes, ll->data); 330 s = eina_hash_find(glob_mimes, ll->data);
331 ptr = find_off(s, mimes_sorted, mimes_str_offsets); 331 ptr = find_off(s, mimes_sorted, mimes_str_offsets);
332 val = (int)((long)ptr) + str_start; 332 val = (int)((size_t)ptr) + str_start;
333 if (fwrite(&val, sizeof(val), 1, f) != 1) 333 if (fwrite(&val, sizeof(val), 1, f) != 1)
334 goto write_error; 334 goto write_error;
335 ll = ll->next; 335 ll = ll->next;