Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 165667 Details for
Bug 237953
app-admin/fam fails to build NULL not declared in this scope
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
removes all NULLs
fam-2.7.0-gcc43-null.patch (text/plain), 1.95 KB, created by
robs
on 2008-09-17 18:55:28 UTC
(
hide
)
Description:
removes all NULLs
Filename:
MIME Type:
Creator:
robs
Created:
2008-09-17 18:55:28 UTC
Size:
1.95 KB
patch
obsolete
>--- 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 <class K, class V> > BTree<K, V>::BTree() >- : root(NULL), npairs(0) >+ : root(0), npairs(0) > { > assert(!(fanout % 2)); > } >@@ -407,7 +407,7 @@ > typename BTree<Key, Value>::Closure > BTree<Key, Value>::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<int, bool>::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); >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 237953
:
165667
|
174287