summaryrefslogtreecommitdiffstats
path: root/tests/auto/networkselftest
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2010-04-27 09:20:07 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2010-04-27 09:20:07 (GMT)
commit2d1199ea9dafe31221f928a9e866893db180d1bf (patch)
tree54e33c4786e3c8daa9cfe12bbfcaca164c35a8d1 /tests/auto/networkselftest
parentd513ab6e72cc6e180f788e67e48d04fc16a2817e (diff)
downloadQt-2d1199ea9dafe31221f928a9e866893db180d1bf.zip
Qt-2d1199ea9dafe31221f928a9e866893db180d1bf.tar.gz
Qt-2d1199ea9dafe31221f928a9e866893db180d1bf.tar.bz2
tst_networkselftest: fix building on Windows
Diffstat (limited to 'tests/auto/networkselftest')
-rw-r--r--tests/auto/networkselftest/tst_networkselftest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/networkselftest/tst_networkselftest.cpp b/tests/auto/networkselftest/tst_networkselftest.cpp
index d25fcb6..ecbc08c 100644
--- a/tests/auto/networkselftest/tst_networkselftest.cpp
+++ b/tests/auto/networkselftest/tst_networkselftest.cpp
@@ -965,11 +965,11 @@ void tst_NetworkSelfTest::smbServer()
QVERIFY2(f, qt_error_string().toLocal8Bit());
char buf[128];
- ssize_t ret = fread(buf, sizeof buf, 1, f);
+ size_t ret = fread(buf, sizeof buf, 1, f);
fclose(f);
QCOMPARE(ret, strlen(contents));
- QVERIFY(memcmp(ret, contents, strlen(contents)) == 0);
+ QVERIFY(memcmp(buf, contents, strlen(contents)) == 0);
#else
// try to use Samba
QString progname = "smbclient";