diff stream/cache2.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 3b2c280da1af
children d206960484fe
line wrap: on
line diff
--- a/stream/cache2.c	Tue Nov 06 15:53:41 2012 +0000
+++ b/stream/cache2.c	Tue Nov 06 17:31:23 2012 +0000
@@ -264,7 +264,7 @@
 static int cache_execute_control(cache_vars_t *s) {
   double double_res;
   unsigned uint_res;
-  unsigned uint64_res;
+  uint64_t uint64_res;
   int needs_flush = 0;
   static unsigned last;
   int quit = s->control == -2;
@@ -693,7 +693,7 @@
       *(unsigned *)arg = s->control_uint_arg;
       break;
     case STREAM_CTRL_GET_SIZE:
-      *(off_t *)arg = s->control_uint_arg;
+      *(uint64_t *)arg = s->control_uint_arg;
       break;
     case STREAM_CTRL_GET_LANG:
       *(struct stream_lang_req *)arg = s->control_lang_arg;