summaryrefslogtreecommitdiff
path: root/src/lib/eet/eet_lib.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2015-03-17 08:50:54 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-03-17 09:58:21 +0100
commit0e5686de73a6b9a9b094311df2e82b692bf9f22f (patch)
tree73d5ace8b7155dad58a8f51f43bfa2d4f158138f /src/lib/eet/eet_lib.c
parent5412be48e1dc5bc25b91c83430deccf79924b940 (diff)
eet: remove use of deprecated Eina_Binbuf functions.
Diffstat (limited to 'src/lib/eet/eet_lib.c')
-rw-r--r--src/lib/eet/eet_lib.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/eet/eet_lib.c b/src/lib/eet/eet_lib.c
index a5ef22d18a..ef4d75c7f5 100644
--- a/src/lib/eet/eet_lib.c
+++ b/src/lib/eet/eet_lib.c
@@ -2199,7 +2199,7 @@ eet_alias(Eet_File *ef,
2199 /* figure hash bucket */ 2199 /* figure hash bucket */
2200 hash = _eet_hash_gen(name, ef->header->directory->size); 2200 hash = _eet_hash_gen(name, ef->header->directory->size);
2201 2201
2202 in = eina_binbuf_manage_read_only_new_length((unsigned char*) destination, strlen(destination) + 1); 2202 in = eina_binbuf_manage_new((unsigned char*) destination, strlen(destination) + 1, EINA_TRUE);
2203 if (!in) goto on_error; 2203 if (!in) goto on_error;
2204 2204
2205 /* if we want to compress */ 2205 /* if we want to compress */
@@ -2322,7 +2322,7 @@ eet_write_cipher(Eet_File *ef,
2322 2322
2323 UNLOCK_FILE(ef); 2323 UNLOCK_FILE(ef);
2324 2324
2325 in = eina_binbuf_manage_read_only_new_length(data, size); 2325 in = eina_binbuf_manage_new(data, size, EINA_TRUE);
2326 if (comp) 2326 if (comp)
2327 { 2327 {
2328 Eina_Binbuf *out; 2328 Eina_Binbuf *out;
@@ -2740,7 +2740,7 @@ read_binbuf_from_disk(Eet_File *ef,
2740 Eet_File_Node *efn) 2740 Eet_File_Node *efn)
2741{ 2741{
2742 if (efn->data) 2742 if (efn->data)
2743 return eina_binbuf_manage_read_only_new_length(efn->data, efn->size); 2743 return eina_binbuf_manage_new(efn->data, efn->size, EINA_TRUE);
2744 2744
2745 if (efn->offset > ef->data_size) 2745 if (efn->offset > ef->data_size)
2746 return 0; 2746 return 0;
@@ -2751,5 +2751,5 @@ read_binbuf_from_disk(Eet_File *ef,
2751 if ((efn->offset + efn->size) > ef->data_size) 2751 if ((efn->offset + efn->size) > ef->data_size)
2752 return 0; 2752 return 0;
2753 2753
2754 return eina_binbuf_manage_read_only_new_length(ef->data + efn->offset, efn->size); 2754 return eina_binbuf_manage_new(ef->data + efn->offset, efn->size, EINA_TRUE);
2755} 2755}