diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-04-26 20:55:32 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-04-26 20:55:32 +0000 |
commit | 9ba2dd7ea1b1984c935dae3ac866484a4307c4dc (patch) | |
tree | 0a88c48b329043584a24d22e231876ac6f3de8d4 /src/or/buffers.c | |
parent | ef2409e4ed367f7fe6f8b95ca874fbaf81f96e4b (diff) | |
download | tor-9ba2dd7ea1b1984c935dae3ac866484a4307c4dc.tar.gz tor-9ba2dd7ea1b1984c935dae3ac866484a4307c4dc.zip |
Clean/renormalize whitespace
svn:r4122
Diffstat (limited to 'src/or/buffers.c')
-rw-r--r-- | src/or/buffers.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/or/buffers.c b/src/or/buffers.c index c5fcd6fe56..937e335927 100644 --- a/src/or/buffers.c +++ b/src/or/buffers.c @@ -25,12 +25,12 @@ const char buffers_c_id[] = "$Id$"; #define GUARDED_MEM(m) ((m)+4) #define ALLOC_LEN(ln) ((ln)+8) #define SET_GUARDS(m, ln) \ - do { set_uint32((m)-4, START_MAGIC); set_uint32((m)+ln, END_MAGIC); }while(0) + do { set_uint32((m)-4,START_MAGIC); set_uint32((m)+ln,END_MAGIC); } while (0) #else #define RAW_MEM(m) (m) #define GUARDED_MEM(m) (m) #define ALLOC_LEN(ln) (ln) -#define SET_GUARDS(m,ln) do {} while(0) +#define SET_GUARDS(m,ln) do {} while (0) #endif #define BUFFER_MAGIC 0xB0FFF312u @@ -76,7 +76,6 @@ static INLINE char *_buf_end(buf_t *buf) return (next < end) ? next : (next - buf->len); } - /** If the pointer <b>cp</b> has passed beyond the end of the buffer, wrap it * around. */ static INLINE char *_wrap_ptr(buf_t *buf, char *cp) { @@ -449,7 +448,6 @@ flush_buf_impl(int s, buf_t *buf, size_t sz, size_t *buf_flushlen) } } - /** Write data from <b>buf</b> to the socket <b>s</b>. Write at most * <b>*buf_flushlen</b> bytes, decrement <b>*buf_flushlen</b> by * the number of bytes actually written, and remove the written bytes @@ -509,7 +507,6 @@ flush_buf_tls_impl(tor_tls *tls, buf_t *buf, size_t sz, size_t *buf_flushlen) return r; } - /** As flush_buf, but writes data to a TLS connection. */ int flush_buf_tls(tor_tls *tls, buf_t *buf, size_t *buf_flushlen) |