diff options
author | joerg <joerg@pkgsrc.org> | 2013-09-17 21:13:45 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2013-09-17 21:13:45 +0000 |
commit | 58962e346d006fa7e942c379aced5d21fdaaee44 (patch) | |
tree | 97c2cc1ebd890dcc3a35ccb9af0caec85c1d61c7 /net/ns/patches | |
parent | cf8c21761004bd5c66572f0eceed2b0c51bdd7cd (diff) | |
download | pkgsrc-58962e346d006fa7e942c379aced5d21fdaaee44.tar.gz |
Fix a header guard. Remove non-portable comparision to NULL iterator.
Be explicit about using the custom hash.
Diffstat (limited to 'net/ns/patches')
-rw-r--r-- | net/ns/patches/patch-mdart_mdart__adp.cc | 22 | ||||
-rw-r--r-- | net/ns/patches/patch-mdart_mdart__queue.h | 13 | ||||
-rw-r--r-- | net/ns/patches/patch-nix_nixnode.cc | 13 |
3 files changed, 48 insertions, 0 deletions
diff --git a/net/ns/patches/patch-mdart_mdart__adp.cc b/net/ns/patches/patch-mdart_mdart__adp.cc new file mode 100644 index 00000000000..d783cc66b63 --- /dev/null +++ b/net/ns/patches/patch-mdart_mdart__adp.cc @@ -0,0 +1,22 @@ +$NetBSD: patch-mdart_mdart__adp.cc,v 1.1 2013/09/17 21:13:45 joerg Exp $ + +--- mdart/mdart_adp.cc.orig 2013-09-17 20:01:09.000000000 +0000 ++++ mdart/mdart_adp.cc +@@ -105,7 +105,7 @@ void ADP::sendDarq(nsaddr_t reqId, int r + #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(); diff --git a/net/ns/patches/patch-mdart_mdart__queue.h b/net/ns/patches/patch-mdart_mdart__queue.h new file mode 100644 index 00000000000..47d262fd271 --- /dev/null +++ b/net/ns/patches/patch-mdart_mdart__queue.h @@ -0,0 +1,13 @@ +$NetBSD: patch-mdart_mdart__queue.h,v 1.1 2013/09/17 21:13:45 joerg Exp $ + +--- mdart/mdart_queue.h.orig 2013-09-17 20:00:56.000000000 +0000 ++++ mdart/mdart_queue.h +@@ -45,7 +45,7 @@ + + + #ifndef __mdart_rqueue_h__ +-#define __mdart_rqueue_h_ ++#define __mdart_rqueue_h__ + + + diff --git a/net/ns/patches/patch-nix_nixnode.cc b/net/ns/patches/patch-nix_nixnode.cc new file mode 100644 index 00000000000..3d97e4c64e5 --- /dev/null +++ b/net/ns/patches/patch-nix_nixnode.cc @@ -0,0 +1,13 @@ +$NetBSD: patch-nix_nixnode.cc,v 1.1 2013/09/17 21:13:45 joerg Exp $ + +--- nix/nixnode.cc.orig 2013-09-17 20:01:46.000000000 +0000 ++++ nix/nixnode.cc +@@ -156,8 +156,6 @@ Edge* pE; + if (last.first == NODE_NONE) + { + prev = m_Adj.begin(); +- if (prev == (EdgeVec_it) NULL) // ! How can this happen? +- return(NodeWeight_t(NODE_NONE, 0)); + pE = *prev; + if(0)printf("NextAdj returning first edge %ld\n", + pE->m_n); |