Trying to silence compiler warnings of OpenSuse Build Service

This commit is contained in:
2010-06-20 14:16:40 +00:00
parent ec1cb90cba
commit 5a6024a1cc
6 changed files with 9 additions and 6 deletions

View File

@ -800,7 +800,8 @@ void isoburn_disc_write(struct burn_write_opts *opts, struct burn_disc *disc)
ret= lstat(adr, &stbuf);
if(ret!=-1)
if(S_ISREG(stbuf.st_mode))
truncate(adr, nwa * (off_t) 2048);
ret= truncate(adr, nwa * (off_t) 2048);
/* (result of truncate intentionally ignored) */
}
}
}