Fix some warnings on *BSD's

This commit is contained in:
Sanel Zukan 2009-10-07 09:25:21 +00:00
parent 205ba2b837
commit c3912222cd
2 changed files with 2 additions and 2 deletions

View File

@ -101,7 +101,7 @@ static void study_and_fill(DesktopIcon* dicon, DesktopIconData* data) {
} else {
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;
strftime(buff, sizeof(buff), "%F %H:%S", localtime(&st.st_atime));

View File

@ -179,7 +179,7 @@ static int start_child_process(const char* cmd) {
free(params[i]);
free(params);
int status, ret;
int status = 0, ret = 1;
errno = 0;
if(waitpid(pid, &status, 0) < 0) {
E_WARNING(E_STRLOC ": waitpid() failed with '%s'\n", strerror(errno));