mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-29 07:24:13 +01:00
Fixes problems compiling on linux
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@455 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
e710fdd178
commit
f75c14f2b9
@ -97,7 +97,7 @@ public:
|
|||||||
*/
|
*/
|
||||||
int In(char* data, size_t size, int * percent)
|
int In(char* data, size_t size, int * percent)
|
||||||
{
|
{
|
||||||
*percent = TotalSize ? ((quint64)TransferredSize*(qint64)100)/(quint64)TotalSize : 0;
|
*percent = TotalSize ? ((quint64)TransferredSize*(quint64)100)/(quint64)TotalSize : 0;
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
size=fread(data,sizeof(quint8),size,File);
|
size=fread(data,sizeof(quint8),size,File);
|
||||||
if(size)
|
if(size)
|
||||||
|
Loading…
Reference in New Issue
Block a user