diff options
author | 2014-10-30 16:45:37 +0000 | |
---|---|---|
committer | 2014-10-30 16:45:37 +0000 | |
commit | 824b820d4681cb871673244f671f855c64a3db5f (patch) | |
tree | 773c3e73582378f3fcc0a4fa9c5818eeb12f7d51 /lib/libevent/buffer.c | |
parent | my mistake. we already did increase buffers to 16k; increasing to 64k (diff) | |
download | wireguard-openbsd-824b820d4681cb871673244f671f855c64a3db5f.tar.xz wireguard-openbsd-824b820d4681cb871673244f671f855c64a3db5f.zip |
Fix whitespace errors in libevent.
OK nicm@
Diffstat (limited to 'lib/libevent/buffer.c')
-rw-r--r-- | lib/libevent/buffer.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/libevent/buffer.c b/lib/libevent/buffer.c index 4b708365f8c..baa7a21da67 100644 --- a/lib/libevent/buffer.c +++ b/lib/libevent/buffer.c @@ -1,4 +1,4 @@ -/* $OpenBSD: buffer.c,v 1.25 2014/10/29 22:47:29 bluhm Exp $ */ +/* $OpenBSD: buffer.c,v 1.26 2014/10/30 16:45:37 bluhm Exp $ */ /* * Copyright (c) 2002, 2003 Niels Provos <provos@citi.umich.edu> @@ -46,7 +46,7 @@ struct evbuffer * evbuffer_new(void) { struct evbuffer *buffer; - + buffer = calloc(1, sizeof(struct evbuffer)); return (buffer); @@ -60,7 +60,7 @@ evbuffer_free(struct evbuffer *buffer) free(buffer); } -/* +/* * This is a destructive add. The data from one buffer moves into * the other buffer. */ @@ -88,7 +88,7 @@ evbuffer_add_buffer(struct evbuffer *outbuf, struct evbuffer *inbuf) SWAP(outbuf, inbuf); SWAP(inbuf, &tmp); - /* + /* * Optimization comes with a price; we need to notify the * buffer if necessary of the changes. oldoff is the amount * of data that we transferred from inbuf to outbuf @@ -97,7 +97,7 @@ evbuffer_add_buffer(struct evbuffer *outbuf, struct evbuffer *inbuf) (*inbuf->cb)(inbuf, oldoff, inbuf->off, inbuf->cbarg); if (oldoff && outbuf->cb != NULL) (*outbuf->cb)(outbuf, 0, oldoff, outbuf->cbarg); - + return (0); } @@ -172,7 +172,7 @@ evbuffer_remove(struct evbuffer *buf, void *data, size_t datlen) memcpy(data, buf->buffer, nread); evbuffer_drain(buf, nread); - + return (nread); } |