summaryrefslogtreecommitdiff
path: root/src/lib/efl_wl
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-06-20 11:32:12 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-06-20 11:32:12 +0100
commit471c4bebb592bc11f7acc001166075a8721ebb0b (patch)
tree61d9389bcfbb725de2be55f4f00938099555495d /src/lib/efl_wl
parentdf286b238c5aa2d7b615ca94a5b8aecd200a97b9 (diff)
efl_wfl: fix warning and err prints for wl keymap tmp file
Diffstat (limited to 'src/lib/efl_wl')
-rw-r--r--src/lib/efl_wl/efl_wl.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/lib/efl_wl/efl_wl.c b/src/lib/efl_wl/efl_wl.c
index 15e2ec0465..02406d1d21 100644
--- a/src/lib/efl_wl/efl_wl.c
+++ b/src/lib/efl_wl/efl_wl.c
@@ -3685,16 +3685,19 @@ anonymous_fd_get(off_t size)
3685 fd = eina_file_mkstemp("comp-keymapXXXXXX", &file); 3685 fd = eina_file_mkstemp("comp-keymapXXXXXX", &file);
3686 if (fd < 0) 3686 if (fd < 0)
3687 { 3687 {
3688 EINA_LOG_ERR("mkstemp failed!\n"); 3688 EINA_LOG_ERR("mkstemp failed!");
3689 return - 1; 3689 return - 1;
3690 } 3690 }
3691 if (!eina_file_close_on_exec(fd, 1)) 3691 if (!eina_file_close_on_exec(fd, 1))
3692 { 3692 {
3693 EINA_LOG_ERR("Failed to set CLOEXEC on fd %d\n", fd); 3693 EINA_LOG_ERR("Failed to set CLOEXEC on fd %d", fd);
3694 close(fd); 3694 close(fd);
3695 return - 1; 3695 return - 1;
3696 } 3696 }
3697 ftruncate(fd, size); 3697 if (ftruncate(fd, size) == -1)
3698 {
3699 EINA_LOG_ERR("ftruncate failed!");
3700 }
3698 eina_file_unlink(file); 3701 eina_file_unlink(file);
3699 eina_tmpstr_del(file); 3702 eina_tmpstr_del(file);
3700 3703