[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r8441: Trivial cleanup: !!x is a weird way to spell x != NULL. (in tor/trunk: . src/or)



Author: nickm
Date: 2006-09-21 17:48:37 -0400 (Thu, 21 Sep 2006)
New Revision: 8441

Modified:
   tor/trunk/
   tor/trunk/src/or/policies.c
Log:
 r8876@Kushana:  nickm | 2006-09-21 16:58:46 -0400
 Trivial cleanup: !!x is a weird way to spell x != NULL.



Property changes on: tor/trunk
___________________________________________________________________
 svk:merge ticket from /tor/branches/eventdns [r8876] on c95137ef-5f19-0410-b913-86e773d04f59

Modified: tor/trunk/src/or/policies.c
===================================================================
--- tor/trunk/src/or/policies.c	2006-09-21 21:48:22 UTC (rev 8440)
+++ tor/trunk/src/or/policies.c	2006-09-21 21:48:37 UTC (rev 8441)
@@ -128,7 +128,7 @@
 int
 firewall_is_fascist_or(void)
 {
-  return !!reachable_or_addr_policy;
+  return reachable_or_addr_policy != NULL;
 }
 
 /** Return true iff <b>policy</b> (possibly NULL) will allow a