mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Turn bool_neq and bool_eq into macros.
svn:r9914
This commit is contained in:
@@ -582,14 +582,6 @@ dirserv_add_descriptor(const char *desc, const char **msg)
|
||||
}
|
||||
}
|
||||
|
||||
/** Helper: return true iff the boolean values of <b>a</b> and <b>b</b> are
|
||||
* different. */
|
||||
static INLINE int
|
||||
bool_neq(int a, int b)
|
||||
{
|
||||
return (a) ? !b : b;
|
||||
}
|
||||
|
||||
/** Remove all descriptors whose nicknames or fingerprints no longer
|
||||
* are allowed by our fingerprint list. (Descriptors that used to be
|
||||
* good can become bad when we reload the fingerprint list.)
|
||||
|
||||
Reference in New Issue
Block a user