tasn pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=9846976847c7a3a515ee67c1c178e6fb53707ddd

commit 9846976847c7a3a515ee67c1c178e6fb53707ddd
Author: Vincent Torri <vincent.to...@gmail.com>
Date:   Thu Jul 2 22:24:44 2015 +0200

    Efl debug daemon: Fix Warning on Windows.
    
    According to the Open Group, pid_t is signed integer and can not
    be larger than a long
---
 src/bin/efl/efl_debugd.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/bin/efl/efl_debugd.c b/src/bin/efl/efl_debugd.c
index a46d423..a1025fb 100644
--- a/src/bin/efl/efl_debugd.c
+++ b/src/bin/efl/efl_debugd.c
@@ -127,8 +127,8 @@ _do(Client *c, char *op, unsigned char *d, int size)
 
                   send_cli(c2->client, "EVON", NULL, 0);
                   c2->evlog_fetch_timer = ecore_timer_add(0.2, _cb_evlog, c2);
-                  snprintf(buf, sizeof(buf), "%s/efl_debug_evlog-%i.log",
-                           getenv("HOME"), c2->pid);
+                  snprintf(buf, sizeof(buf), "%s/efl_debug_evlog-%ld.log",
+                           getenv("HOME"), (long)c2->pid);
                   c2->evlog_file = fopen(buf, "w");
                }
           }

-- 


Reply via email to