summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-07-24 21:22:33 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-07-24 21:22:33 +0100
commit52ec7be0139046474bfd86a13b2cc3c8960936a1 (patch)
treec479143b74994c75bdeae88c31e81de789073a82 /src/bin
parent54850ccd2f630b1397a4268088ba53b3305ffcb7 (diff)
efreetd - dont confuse log file file handle and log math func
better not to use the same symbol...
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/efreet/efreetd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bin/efreet/efreetd.c b/src/bin/efreet/efreetd.c
index 1ef7d339c2..a843d0688c 100644
--- a/src/bin/efreet/efreetd.c
+++ b/src/bin/efreet/efreetd.c
@@ -32,7 +32,7 @@ int
32main(int argc, char *argv[]) 32main(int argc, char *argv[])
33{ 33{
34 char path[PATH_MAX + 128], buf[PATH_MAX]; 34 char path[PATH_MAX + 128], buf[PATH_MAX];
35 FILE *log; 35 FILE *logf;
36 int fd; 36 int fd;
37 const char *log_file_dir = NULL; 37 const char *log_file_dir = NULL;
38 const char *hostname_str = NULL; 38 const char *hostname_str = NULL;
@@ -69,9 +69,9 @@ main(int argc, char *argv[])
69 ERR("Can't create log file '%s'\b", path); 69 ERR("Can't create log file '%s'\b", path);
70 goto tmp_error; 70 goto tmp_error;
71 } 71 }
72 log = fdopen(fd, "wb"); 72 logf = fdopen(fd, "wb");
73 if (!log) goto tmp_error; 73 if (!logf) goto tmp_error;
74 eina_log_print_cb_set(eina_log_print_cb_file, log); 74 eina_log_print_cb_set(eina_log_print_cb_file, logf);
75 efreetd_log_dom = eina_log_domain_register("efreetd", EFREETD_DEFAULT_LOG_COLOR); 75 efreetd_log_dom = eina_log_domain_register("efreetd", EFREETD_DEFAULT_LOG_COLOR);
76 if (efreetd_log_dom < 0) 76 if (efreetd_log_dom < 0)
77 { 77 {