comparison 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
comparison
equal deleted inserted replaced
35265:54a706166f5d 35266:ceb148e1fe31
104 off_t size; 104 off_t size;
105 105
106 size = lseek(s->fd, 0, SEEK_END); 106 size = lseek(s->fd, 0, SEEK_END);
107 lseek(s->fd, s->pos, SEEK_SET); 107 lseek(s->fd, s->pos, SEEK_SET);
108 if(size != (off_t)-1) { 108 if(size != (off_t)-1) {
109 *((off_t*)arg) = size; 109 *(uint64_t*)arg = size;
110 return 1; 110 return 1;
111 } 111 }
112 } 112 }
113 } 113 }
114 return STREAM_UNSUPPORTED; 114 return STREAM_UNSUPPORTED;