diff options
author | Lennart Poettering <lennart@poettering.net> | 2008-08-29 23:53:55 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2008-08-29 23:53:55 +0200 |
commit | 13018d62c10731459b0b4fd3f6852dcebddbccb8 (patch) | |
tree | 56115c47b62e8062100492867a8d358d12d571ee /src/pulsecore/authkey.c | |
parent | 506eacc9228eaf4f9ed805ca22157988327311fb (diff) |
fix a few compiler warnings on older gcc
Diffstat (limited to 'src/pulsecore/authkey.c')
-rw-r--r-- | src/pulsecore/authkey.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pulsecore/authkey.c b/src/pulsecore/authkey.c index 2f703bee..b122feee 100644 --- a/src/pulsecore/authkey.c +++ b/src/pulsecore/authkey.c @@ -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)); |