mirror of
https://github.com/edeproject/ede.git
synced 2023-08-10 21:13:03 +03:00
Fix some warnings on *BSD's
This commit is contained in:
parent
205ba2b837
commit
c3912222cd
@ -101,7 +101,7 @@ static void study_and_fill(DesktopIcon* dicon, DesktopIconData* data) {
|
|||||||
} else {
|
} else {
|
||||||
char buff[128];
|
char buff[128];
|
||||||
|
|
||||||
snprintf(buff, sizeof(buff), "%lu Bytes", st.st_size);
|
snprintf(buff, sizeof(buff), "%lu Bytes", (unsigned long)st.st_size);
|
||||||
data->size = buff;
|
data->size = buff;
|
||||||
|
|
||||||
strftime(buff, sizeof(buff), "%F %H:%S", localtime(&st.st_atime));
|
strftime(buff, sizeof(buff), "%F %H:%S", localtime(&st.st_atime));
|
||||||
|
@ -179,7 +179,7 @@ static int start_child_process(const char* cmd) {
|
|||||||
free(params[i]);
|
free(params[i]);
|
||||||
free(params);
|
free(params);
|
||||||
|
|
||||||
int status, ret;
|
int status = 0, ret = 1;
|
||||||
errno = 0;
|
errno = 0;
|
||||||
if(waitpid(pid, &status, 0) < 0) {
|
if(waitpid(pid, &status, 0) < 0) {
|
||||||
E_WARNING(E_STRLOC ": waitpid() failed with '%s'\n", strerror(errno));
|
E_WARNING(E_STRLOC ": waitpid() failed with '%s'\n", strerror(errno));
|
||||||
|
Loading…
Reference in New Issue
Block a user