]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
timeshift: fixed wrong variable type in _read_buf()
authorJaroslav Kysela <perex@perex.cz>
Mon, 4 Jan 2016 16:47:29 +0000 (17:47 +0100)
committerJaroslav Kysela <perex@perex.cz>
Mon, 4 Jan 2016 16:47:29 +0000 (17:47 +0100)
src/timeshift/timeshift_reader.c

index 1f71a72f7acabf93c4131789be51f9d929ae6c69..259cbb23fa566cf5056894bbdf4a77c26c3616a7 100644 (file)
@@ -75,7 +75,8 @@ static timeshift_seek_t *_read_close ( timeshift_seek_t *seek )
 
 static ssize_t _read_buf ( timeshift_file_t *tsf, int fd, void *buf, size_t size )
 {
-  size_t r, ret;
+  ssize_t r;
+  size_t ret;
 
   if (tsf && tsf->ram) {
     if (tsf->roff == tsf->woff) return 0;