forked from enlightenment/efl
parent
2a45ea31ce
commit
88c88c5614
|
@ -2133,7 +2133,7 @@ cserve2_cache_file_open(Client *client, unsigned int client_file_id, const char
|
|||
|
||||
// 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",
|
||||
|
@ -2168,7 +2168,7 @@ cserve2_cache_file_open(Client *client, unsigned int client_file_id, const char
|
|||
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);
|
||||
|
||||
|
@ -2267,7 +2267,7 @@ cserve2_cache_image_opts_set(Client *client, Msg_Setopts *msg)
|
|||
|
||||
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)
|
||||
|
|
Loading…
Reference in New Issue