aboutsummaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2009-08-05 09:59:11 -0700
committerNick Mathewson <nickm@torproject.org>2010-09-27 12:29:43 -0400
commitec10c044fb3e7b4865a7e9082c5353876e40915f (patch)
tree8ab4dd41f3597825d9df094004dd50d19eeb5e29 /src/or/or.h
parent63079efb87ab677738ba83d13e3e9d1b0ac1c513 (diff)
downloadtor-ec10c044fb3e7b4865a7e9082c5353876e40915f.tar.gz
tor-ec10c044fb3e7b4865a7e9082c5353876e40915f.zip
Move the "stop writing when the buffer is empty" logic to cnnection_finished_flushing
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h
index e82cd4e1b5..8f875731f6 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -1312,10 +1312,14 @@ static INLINE control_connection_t *TO_CONTROL_CONN(connection_t *c)
stmt ; \
} while (0)
#define ELSE_IF_NO_BUFFEREVENT ; else
+#define IF_HAS_NO_BUFFEREVENT(c) \
+ if (NULL == (c)->bufev)
#else
#define HAS_BUFFEREVENT(c) (0)
#define IF_HAS_BUFFEREVENT(c, stmt) (void)0
#define ELSE_IF_NO_BUFFEREVENT ;
+#define IF_HAS_NO_BUFFEREVENT(c) \
+ if (1)
#endif
/** What action type does an address policy indicate: accept or reject? */