aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2006-11-21 22:23:35 +0000
committerMike Buland <eichlan@xagasoft.com>2006-11-21 22:23:35 +0000
commita6e4c198a23217f126a5abf759b91382dd829e90 (patch)
tree1d0d8b8277119ae8cad75a9dc14c5340ac08d7f0 /src
parent54c441564ab1052d4f778c1d43f3bd468917e3d1 (diff)
downloadlibbu++-a6e4c198a23217f126a5abf759b91382dd829e90.tar.gz
libbu++-a6e4c198a23217f126a5abf759b91382dd829e90.tar.bz2
libbu++-a6e4c198a23217f126a5abf759b91382dd829e90.tar.xz
libbu++-a6e4c198a23217f126a5abf759b91382dd829e90.zip
Fixed the rest of the -Wall complaints. This has made the xmlrepltest
particularly lame.
Diffstat (limited to 'src')
-rw-r--r--src/tests/hashtest.cpp6
-rw-r--r--src/tests/sbuffer.cpp2
-rw-r--r--src/tests/srvstress.cpp1
-rw-r--r--src/tests/strhash.cpp2
-rw-r--r--src/tests/teltest/telnetmonitor.cpp1
-rw-r--r--src/tests/xmlrepltest.cpp2
6 files changed, 8 insertions, 6 deletions
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()
68 { 68 {
69 h.insert( names[j], (void *)(j+1) ); 69 h.insert( names[j], (void *)(j+1) );
70 h.insert( names[j], (void *)(j+1) ); 70 h.insert( names[j], (void *)(j+1) );
71 printf("Capacity: %d, Size: %d, Load: %f\n", 71 printf("Capacity: %lu, Size: %lu, Load: %f\n",
72 h.getCapacity(), 72 h.getCapacity(),
73 h.getSize(), 73 h.getSize(),
74 h.getLoad() 74 h.getLoad()
@@ -86,7 +86,7 @@ int main()
86 { 86 {
87 h.del( names[k] ); 87 h.del( names[k] );
88 //h.insert( names[j], (void *)(j+1) ); 88 //h.insert( names[j], (void *)(j+1) );
89 printf("Capacity: %d, Size: %d, Load: %f\n", 89 printf("Capacity: %lu, Size: %lu, Load: %f\n",
90 h.getCapacity(), 90 h.getCapacity(),
91 h.getSize(), 91 h.getSize(),
92 h.getLoad() 92 h.getLoad()
@@ -98,7 +98,7 @@ int main()
98 for( ; names[j] != NULL; j++ ) 98 for( ; names[j] != NULL; j++ )
99 { 99 {
100 h.insert( names[j], (void *)(j+1) ); 100 h.insert( names[j], (void *)(j+1) );
101 printf("Capacity: %d, Size: %d, Load: %f\n", 101 printf("Capacity: %lu, Size: %lu, Load: %f\n",
102 h.getCapacity(), 102 h.getCapacity(),
103 h.getSize(), 103 h.getSize(),
104 h.getLoad() 104 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()
6 6
7 buf.write("abcdefg", 7 ); 7 buf.write("abcdefg", 7 );
8 8
9 printf("tell: %d\n", buf.tell() ); 9 printf("tell: %ld\n", buf.tell() );
10 10
11 char abuf[6]; 11 char abuf[6];
12 int nRead; 12 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:
43 43
44 bool timeSlice() 44 bool timeSlice()
45 { 45 {
46 return true;
46 } 47 }
47 48
48 bool onNewConnection( Connection *pCon, int nPort ) 49 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[] )
5{ 5{
6 HashFunctionString h; 6 HashFunctionString h;
7 7
8 printf("\"%s\": %d\n", argv[1], h.hash( argv[1] ) ); 8 printf("\"%s\": %lu\n", argv[1], h.hash( argv[1] ) );
9 9
10 return 0; 10 return 0;
11} 11}
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()
34 34
35LinkMessage* TelnetMonitor::processIRM( LinkMessage *pMsg ) 35LinkMessage* TelnetMonitor::processIRM( LinkMessage *pMsg )
36{ 36{
37 return NULL;
37} 38}
38 39
39bool TelnetMonitor::onNewConnection( Connection *pCon, int nPort ) 40bool 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()
17 17
18 printf("\n\n"); 18 printf("\n\n");
19 19
20 XmlNode *xNode = w.getRoot()->detatchNode( 1 ); 20 //XmlNode *xNode = w.getRoot()->detatchNode( 1 );
21 21
22 //XmlWriter::writeNode( stdout, w.getRoot(), 0, NULL ); 22 //XmlWriter::writeNode( stdout, w.getRoot(), 0, NULL );
23 23