summaryrefslogtreecommitdiff
path: root/reference/c/core/src/core_io.c
diff options
context:
space:
mode:
Diffstat (limited to 'reference/c/core/src/core_io.c')
-rw-r--r--reference/c/core/src/core_io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/reference/c/core/src/core_io.c b/reference/c/core/src/core_io.c
index dbfcca1..68fd9c0 100644
--- a/reference/c/core/src/core_io.c
+++ b/reference/c/core/src/core_io.c
@@ -22,7 +22,7 @@ _io_write(const char *filename)
22 Efl_Io_File *file; 22 Efl_Io_File *file;
23 23
24 file = efl_new(EFL_IO_FILE_CLASS, 24 file = efl_new(EFL_IO_FILE_CLASS,
25 efl_file_set(efl_added, filename, NULL), // mandatory 25 efl_file_set(efl_added, filename), // mandatory
26 efl_io_file_flags_set(efl_added, O_WRONLY | O_CREAT), // write and create - default is read 26 efl_io_file_flags_set(efl_added, O_WRONLY | O_CREAT), // write and create - default is read
27 efl_io_file_mode_set(efl_added, 0644), // neccessary if we use O_CREAT 27 efl_io_file_mode_set(efl_added, 0644), // neccessary if we use O_CREAT
28 efl_io_closer_close_on_invalidate_set(efl_added, EINA_TRUE)); // recommended 28 efl_io_closer_close_on_invalidate_set(efl_added, EINA_TRUE)); // recommended
@@ -51,7 +51,7 @@ _io_read(const char *filename)
51 Efl_Io_File *file; 51 Efl_Io_File *file;
52 52
53 file = efl_new(EFL_IO_FILE_CLASS, 53 file = efl_new(EFL_IO_FILE_CLASS,
54 efl_file_set(efl_added, filename, NULL), // mandatory 54 efl_file_set(efl_added, filename), // mandatory
55 efl_io_closer_close_on_invalidate_set(efl_added, EINA_TRUE)); // recommended 55 efl_io_closer_close_on_invalidate_set(efl_added, EINA_TRUE)); // recommended
56 56
57 if (!file) 57 if (!file)