31 lines
1.2 KiB
Diff
31 lines
1.2 KiB
Diff
diff -ru smb4k-0.10.74.orig/core/smb4kshare.cpp smb4k-0.10.74/core/smb4kshare.cpp
|
|
--- smb4k-0.10.74.orig/core/smb4kshare.cpp 2011-09-19 10:38:31.000000000 +0200
|
|
+++ smb4k-0.10.74/core/smb4kshare.cpp 2012-02-25 15:08:35.072531855 +0100
|
|
@@ -456,7 +456,7 @@
|
|
qulonglong factor = 0;
|
|
|
|
(void) frexp( m_total * 1024, &exponent );
|
|
- (void) modf( (exponent - 10) / 10, &tmp_factor );
|
|
+ (void) modf( (exponent - 10) / 10, (double*)&tmp_factor );
|
|
factor = tmp_factor;
|
|
qreal tmp_total = m_total / pow( 1024, factor );
|
|
total = QString( "%1" ).arg( tmp_total, 0, 'f', 1 );
|
|
@@ -513,7 +513,7 @@
|
|
qulonglong factor = 0;
|
|
|
|
(void) frexp( m_free * 1024, &exponent );
|
|
- (void) modf( (exponent - 10) / 10, &tmp_factor );
|
|
+ (void) modf( (exponent - 10) / 10, (double*)&tmp_factor );
|
|
factor = tmp_factor;
|
|
qreal tmp_free = m_free / pow( 1024, factor );
|
|
free = QString( "%1" ).arg( tmp_free, 0, 'f', 1 );
|
|
@@ -570,7 +570,7 @@
|
|
qulonglong factor = 0;
|
|
|
|
(void) frexp( m_used * 1024, &exponent );
|
|
- (void) modf( (exponent - 10) / 10, &tmp_factor );
|
|
+ (void) modf( (exponent - 10) / 10, (double*)&tmp_factor );
|
|
factor = tmp_factor;
|
|
qreal tmp_used = m_used / pow( 1024, factor );
|
|
used = QString( "%1" ).arg( tmp_used, 0, 'f', 1 );
|