summarylogtreecommitdiffstats
path: root/ns-2.35-gcc-compile-errors.patch
blob: 489f6e4a4b3c9223b8052b61edb14af5fa95d64d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
diff --git a/bitmap/ff.xbm b/bitmap/ff.xbm
index 05579fe..00d6d95 100644
--- a/bitmap/ff.xbm
+++ b/bitmap/ff.xbm
@@ -1,5 +1,5 @@
 #define ff_width 15
 #define ff_height 12
-static char ff_bits[] = {
+static unsigned char ff_bits[] = {
    0x00, 0x00, 0x04, 0x01, 0x0c, 0x03, 0x1c, 0x07, 0x3c, 0x0f, 0x7c, 0x1f,
    0x7c, 0x1f, 0x3c, 0x0f, 0x1c, 0x07, 0x0c, 0x03, 0x04, 0x01, 0x00, 0x00};
diff --git a/bitmap/play.xbm b/bitmap/play.xbm
index 4d63679..ea21a06 100644
--- a/bitmap/play.xbm
+++ b/bitmap/play.xbm
@@ -1,5 +1,5 @@
 #define play_width 15
 #define play_height 12
-static char play_bits[] = {
+static unsigned char play_bits[] = {
    0x00, 0x00, 0x0c, 0x00, 0x3c, 0x00, 0xfc, 0x00, 0xfc, 0x03, 0xfc, 0x0f,
    0xfc, 0x0f, 0xfc, 0x03, 0xfc, 0x00, 0x3c, 0x00, 0x0c, 0x00, 0x00, 0x00};
diff --git a/bitmap/rewind.xbm b/bitmap/rewind.xbm
index 929e7a0..d466abf 100644
--- a/bitmap/rewind.xbm
+++ b/bitmap/rewind.xbm
@@ -1,5 +1,5 @@
 #define rewind_width 15
 #define rewind_height 12
-static char rewind_bits[] = {
+static unsigned char rewind_bits[] = {
    0x00, 0x00, 0x40, 0x10, 0x60, 0x18, 0x70, 0x1c, 0x78, 0x1e, 0x7c, 0x1f,
    0x7c, 0x1f, 0x78, 0x1e, 0x70, 0x1c, 0x60, 0x18, 0x40, 0x10, 0x00, 0x00};
diff --git a/bitmap/stop.xbm b/bitmap/stop.xbm
index 01ba707..56150c7 100644
--- a/bitmap/stop.xbm
+++ b/bitmap/stop.xbm
@@ -1,5 +1,5 @@
 #define stop_width 14
 #define stop_height 12
-static char stop_bits[] = {
+static unsigned char stop_bits[] = {
    0x00, 0x00, 0x38, 0x07, 0x38, 0x07, 0x38, 0x07, 0x38, 0x07, 0x38, 0x07,
    0x38, 0x07, 0x38, 0x07, 0x38, 0x07, 0x38, 0x07, 0x38, 0x07, 0x00, 0x00};
diff --git a/mdart/mdart_adp.cc b/mdart/mdart_adp.cc
index a96346e..6bb9225 100644
--- a/mdart/mdart_adp.cc
+++ b/mdart/mdart_adp.cc
@@ -105,7 +105,7 @@ void ADP::sendDarq(nsaddr_t reqId, int reqpktId) {
 #ifdef DEBUG_ADP
 	fprintf(stdout, "%.9f\tADP::sendDarq(%d)\t\t\tin node %d\twith address %s\n", CURRENT_TIME, reqId, mdart_->id_, bitString(mdart_->address_));
 #endif
-	nsaddr_t dstAdd_ = hash(reqId);
+	nsaddr_t dstAdd_ = ::hash(reqId);
 #ifdef DEBUG_ADP
 	fprintf(stdout, "\tsending darq for node %s\n", bitString(dstAdd_));
 #endif
@@ -393,7 +393,7 @@ void ADP::sendDaup() {
 	fprintf(stdout, "%.9f\tMDART::sendDaup()\t\t\t\tin node %d\twith address %s\n", CURRENT_TIME, mdart_->id_, bitString(mdart_->address_));
 //	printDHT();
 #endif
-	nsaddr_t dstAdd_ = hash(mdart_->id_);
+	nsaddr_t dstAdd_ = ::hash(mdart_->id_);
 #ifdef DEBUG_ADP
 	fprintf(stdout, "\tsending daup for node  %s\n", bitString(dstAdd_));
 	mdart_->routingTable_->print();