diff stream/stream_smb.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 43385f40396e
children b5abdfe9bc61
line wrap: on
line diff
--- a/stream/stream_smb.c	Tue Nov 06 15:53:41 2012 +0000
+++ b/stream/stream_smb.c	Tue Nov 06 17:31:23 2012 +0000
@@ -78,7 +78,7 @@
       off_t size = smbc_lseek(s->fd,0,SEEK_END);
       smbc_lseek(s->fd,s->pos,SEEK_SET);
       if(size != (off_t)-1) {
-        *((off_t*)arg) = size;
+        *(uint64_t *)arg = size;
         return 1;
       }
     }