eina, evil: fix warning on 64 bits

This commit is contained in:
Cedric Bail 2013-03-10 11:41:20 +01:00
parent d45af6ec7f
commit 5fc7829c96
2 changed files with 7 additions and 5 deletions

View File

@ -3539,10 +3539,12 @@ _eina_value_type_timeval_convert_to(const Eina_Value_Type *type EINA_UNUSED, con
else if (convert == EINA_VALUE_TYPE_STRINGSHARE ||
convert == EINA_VALUE_TYPE_STRING)
{
const char *other_mem;
char buf[64];
strftime
(buf, sizeof(buf), "%Y-%m-%d %H:%M:%S", localtime(&(v.tv_sec)));
const char *other_mem;
time_t t;
t = v.tv_sec;
strftime(buf, sizeof(buf), "%Y-%m-%d %H:%M:%S", localtime(&t));
other_mem = buf; /* required due &buf == buf */
return eina_value_type_pset(convert, convert_mem, &other_mem);
}

View File

@ -407,8 +407,8 @@ evil_pipe(int *fds)
out0:
closesocket (temp);
fds[0] = INVALID_SOCKET;
fds[1] = INVALID_SOCKET;
fds[0] = -1;
fds[1] = -1;
return -1;
}