fix a few compiler warnings on older gcc

This commit is contained in:
Lennart Poettering 2008-08-29 23:53:55 +02:00
parent 506eacc922
commit 13018d62c1
10 changed files with 19 additions and 19 deletions

View file

@ -54,8 +54,8 @@ static int generate(int fd, void *ret_data, size_t length) {
pa_random(ret_data, length);
lseek(fd, 0, SEEK_SET);
(void) ftruncate(fd, 0);
lseek(fd, (off_t) 0, SEEK_SET);
(void) ftruncate(fd, (off_t) 0);
if ((r = pa_loop_write(fd, ret_data, length, NULL)) < 0 || (size_t) r != length) {
pa_log("Failed to write cookie file: %s", pa_cstrerror(errno));