From a6e4c198a23217f126a5abf759b91382dd829e90 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 21 Nov 2006 22:23:35 +0000 Subject: Fixed the rest of the -Wall complaints. This has made the xmlrepltest particularly lame. --- src/tests/hashtest.cpp | 6 +++--- src/tests/sbuffer.cpp | 2 +- src/tests/srvstress.cpp | 1 + src/tests/strhash.cpp | 2 +- src/tests/teltest/telnetmonitor.cpp | 1 + src/tests/xmlrepltest.cpp | 2 +- 6 files changed, 8 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/tests/hashtest.cpp b/src/tests/hashtest.cpp index f31a3f8..eaa84a0 100644 --- a/src/tests/hashtest.cpp +++ b/src/tests/hashtest.cpp @@ -68,7 +68,7 @@ int main() { h.insert( names[j], (void *)(j+1) ); h.insert( names[j], (void *)(j+1) ); - printf("Capacity: %d, Size: %d, Load: %f\n", + printf("Capacity: %lu, Size: %lu, Load: %f\n", h.getCapacity(), h.getSize(), h.getLoad() @@ -86,7 +86,7 @@ int main() { h.del( names[k] ); //h.insert( names[j], (void *)(j+1) ); - printf("Capacity: %d, Size: %d, Load: %f\n", + printf("Capacity: %lu, Size: %lu, Load: %f\n", h.getCapacity(), h.getSize(), h.getLoad() @@ -98,7 +98,7 @@ int main() for( ; names[j] != NULL; j++ ) { h.insert( names[j], (void *)(j+1) ); - printf("Capacity: %d, Size: %d, Load: %f\n", + printf("Capacity: %lu, Size: %lu, Load: %f\n", h.getCapacity(), h.getSize(), h.getLoad() diff --git a/src/tests/sbuffer.cpp b/src/tests/sbuffer.cpp index d8bbe4d..02798cb 100644 --- a/src/tests/sbuffer.cpp +++ b/src/tests/sbuffer.cpp @@ -6,7 +6,7 @@ int main() buf.write("abcdefg", 7 ); - printf("tell: %d\n", buf.tell() ); + printf("tell: %ld\n", buf.tell() ); char abuf[6]; int nRead; diff --git a/src/tests/srvstress.cpp b/src/tests/srvstress.cpp index 7fe7657..d9a9a1c 100644 --- a/src/tests/srvstress.cpp +++ b/src/tests/srvstress.cpp @@ -43,6 +43,7 @@ public: bool timeSlice() { + return true; } bool onNewConnection( Connection *pCon, int nPort ) diff --git a/src/tests/strhash.cpp b/src/tests/strhash.cpp index 790c5b6..f6528ca 100644 --- a/src/tests/strhash.cpp +++ b/src/tests/strhash.cpp @@ -5,7 +5,7 @@ int main( int argc, char *argv[] ) { HashFunctionString h; - printf("\"%s\": %d\n", argv[1], h.hash( argv[1] ) ); + printf("\"%s\": %lu\n", argv[1], h.hash( argv[1] ) ); return 0; } diff --git a/src/tests/teltest/telnetmonitor.cpp b/src/tests/teltest/telnetmonitor.cpp index 32c2924..65954eb 100644 --- a/src/tests/teltest/telnetmonitor.cpp +++ b/src/tests/teltest/telnetmonitor.cpp @@ -34,6 +34,7 @@ bool TelnetMonitor::timeSlice() LinkMessage* TelnetMonitor::processIRM( LinkMessage *pMsg ) { + return NULL; } bool TelnetMonitor::onNewConnection( Connection *pCon, int nPort ) diff --git a/src/tests/xmlrepltest.cpp b/src/tests/xmlrepltest.cpp index 1fe9ec2..9667705 100644 --- a/src/tests/xmlrepltest.cpp +++ b/src/tests/xmlrepltest.cpp @@ -17,7 +17,7 @@ int main() printf("\n\n"); - XmlNode *xNode = w.getRoot()->detatchNode( 1 ); + //XmlNode *xNode = w.getRoot()->detatchNode( 1 ); //XmlWriter::writeNode( stdout, w.getRoot(), 0, NULL ); -- cgit v1.2.3