summaryrefslogtreecommitdiffstats
path: root/tests/auto/networkselftest/tst_networkselftest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/networkselftest/tst_networkselftest.cpp')
-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";