diff stream/stream_file.c @ 35266:ceb148e1fe31

Change STREAM_CTRL_GET_SIZE argument type from off_t to uint64_t. Also fix the incorrect type of the uint64_res variable.
author reimar
date Tue, 06 Nov 2012 17:31:23 +0000
parents 5f3501f7f4d9
children 3edaed3c1d60
line wrap: on
line diff
--- a/stream/stream_file.c	Tue Nov 06 15:53:41 2012 +0000
+++ b/stream/stream_file.c	Tue Nov 06 17:31:23 2012 +0000
@@ -106,7 +106,7 @@
       size = lseek(s->fd, 0, SEEK_END);
       lseek(s->fd, s->pos, SEEK_SET);
       if(size != (off_t)-1) {
-        *((off_t*)arg) = size;
+        *(uint64_t*)arg = size;
         return 1;
       }
     }