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
This commit is contained in:
Vincent Torri 2015-07-02 22:24:44 +02:00 committed by Tom Hacohen
parent e494c225f7
commit 9846976847
1 changed files with 2 additions and 2 deletions

View File

@ -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");
}
}