// search whether the file is already opened by another client
snprintf(buf, sizeof(buf), "%s:%s", path, key);
- file_id = (unsigned int)eina_hash_find(file_ids, buf);
+ file_id = (unsigned int)(uintptr_t)eina_hash_find(file_ids, buf);
if (file_id)
{
DBG("found file_id %u for client file id %d",
entry->key = strdup(key);
entry->base.id = file_id;
eina_hash_add(file_entries, &file_id, entry);
- eina_hash_add(file_ids, buf, (void *)file_id);
+ eina_hash_add(file_ids, buf, (intptr_t*)(int64_t)file_id);
ref = _entry_reference_add((Entry *)entry, client, client_file_id);
eina_hash_add(client->files.referencing, &client_file_id, ref);
entry->base.id = image_id;
eina_hash_add(image_entries, &image_id, entry);
- eina_hash_add(image_ids, buf, (void *)image_id);
+ eina_hash_add(image_ids, buf, (intptr_t *)(int64_t)image_id);
ref = _entry_reference_add((Entry *)entry, client, msg->image_id);
if (oldref)