--- src/Interest.h.bak 2008-09-17 20:29:30.000000000 +0200 +++ src/Interest.h 2008-09-17 20:29:37.000000000 +0200 @@ -81,7 +81,7 @@ protected: bool do_stat(); - virtual void post_event(const Event&, const char * = NULL) = 0; + virtual void post_event(const Event&, const char * = 0) = 0; char& ci_bits() { return ci_char; } char& dir_bits() { return dir_char; } const char& ci_bits() const { return ci_char; } --- include/BTree.h.bak 2008-09-17 20:29:53.000000000 +0200 +++ include/BTree.h 2008-09-17 20:30:28.000000000 +0200 @@ -271,7 +271,7 @@ n += that->n + 1; link[n] = that->link[that->n]; that->n = 0; - that->link[0] = NULL; + that->link[0] = 0; } /////////////////////////////////////////////////////////////////////////////// @@ -280,7 +280,7 @@ template BTree::BTree() - : root(NULL), npairs(0) + : root(0), npairs(0) { assert(!(fanout % 2)); } @@ -407,7 +407,7 @@ typename BTree::Closure BTree::insert(Node *p, const Key& key, const Value& value) { - if (!p) return Closure(key, value, NULL); + if (!p) return Closure(key, value, 0); // If you're running Purify on a client linking with libfam, and it says // that line is causing a 3-byte UMR for BTree::insert() in // FAMNextEvent() ("Reading 8 bytes from 0x... on the stack (3 bytes at @@ -475,7 +475,7 @@ case UNDER: if (root->n == 0) { Node *nr = root->link[0]; - root->link[0] = NULL; // don't delete subtree + root->link[0] = 0; // don't delete subtree delete root; root = nr; } @@ -507,8 +507,8 @@ Node *cp = p->link[i]; assert(cp); - Node *rp = i < p->n ? p->link[i + 1] : NULL; - Node *lp = i > 0 ? p->link[i - 1] : NULL; + Node *rp = i < p->n ? p->link[i + 1] : 0; + Node *lp = i > 0 ? p->link[i - 1] : 0; assert(!rp || rp->n >= fanout / 2); assert(!lp || lp->n >= fanout / 2);