11 May
2006
11 May
'06
12:57 p.m.
"Automatic cvs log generator" wrote:
fix compiler warnings (and one typo) Modified files: ... File: radiusd/src/lib/rbtree.c; Revision: 1.20;
That wasn't a typo, and the "const" should really be there. The trees are used in a multi-threaded environment, and the default red-black tree code assumes that the sentinel is writable. It's not. After I added the "const", I caught and fixed odd threading bugs, where two threads would compete in their writes to the sentinel, which would result in problems. Alan DeKok.