comparison 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
comparison
equal deleted inserted replaced
35265:54a706166f5d 35266:ceb148e1fe31
76 switch(cmd) { 76 switch(cmd) {
77 case STREAM_CTRL_GET_SIZE: { 77 case STREAM_CTRL_GET_SIZE: {
78 off_t size = smbc_lseek(s->fd,0,SEEK_END); 78 off_t size = smbc_lseek(s->fd,0,SEEK_END);
79 smbc_lseek(s->fd,s->pos,SEEK_SET); 79 smbc_lseek(s->fd,s->pos,SEEK_SET);
80 if(size != (off_t)-1) { 80 if(size != (off_t)-1) {
81 *((off_t*)arg) = size; 81 *(uint64_t *)arg = size;
82 return 1; 82 return 1;
83 } 83 }
84 } 84 }
85 } 85 }
86 return STREAM_UNSUPPORTED; 86 return STREAM_UNSUPPORTED;