[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] token_bucket: Fix indentation
commit c2f83746f4d65599bd45381c07a95c0d88181882
Author: David Goulet <dgoulet@xxxxxxxxxxxxxx>
Date: Fri Apr 13 16:58:49 2018 -0400
token_bucket: Fix indentation
Both header and code file had some indentation issues after mass renaming.
No code behavior change.
Signed-off-by: David Goulet <dgoulet@xxxxxxxxxxxxxx>
---
src/common/token_bucket.c | 10 +++++-----
src/common/token_bucket.h | 18 +++++++++---------
2 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/src/common/token_bucket.c b/src/common/token_bucket.c
index 7c81264e2..5d97a920f 100644
--- a/src/common/token_bucket.c
+++ b/src/common/token_bucket.c
@@ -130,9 +130,9 @@ rate_per_sec_to_rate_per_step(uint32_t rate)
*/
void
token_bucket_rw_init(token_bucket_rw_t *bucket,
- uint32_t rate,
- uint32_t burst,
- uint32_t now_ts)
+ uint32_t rate,
+ uint32_t burst,
+ uint32_t now_ts)
{
memset(bucket, 0, sizeof(token_bucket_rw_t));
token_bucket_rw_adjust(bucket, rate, burst);
@@ -217,7 +217,7 @@ token_bucket_rw_refill(token_bucket_rw_t *bucket,
*/
int
token_bucket_rw_dec_read(token_bucket_rw_t *bucket,
- ssize_t n)
+ ssize_t n)
{
return token_bucket_raw_dec(&bucket->read_bucket, n);
}
@@ -230,7 +230,7 @@ token_bucket_rw_dec_read(token_bucket_rw_t *bucket,
*/
int
token_bucket_rw_dec_write(token_bucket_rw_t *bucket,
- ssize_t n)
+ ssize_t n)
{
return token_bucket_raw_dec(&bucket->write_bucket, n);
}
diff --git a/src/common/token_bucket.h b/src/common/token_bucket.h
index 44315fb6b..329b652f8 100644
--- a/src/common/token_bucket.h
+++ b/src/common/token_bucket.h
@@ -63,29 +63,29 @@ typedef struct token_bucket_rw_t {
} token_bucket_rw_t;
void token_bucket_rw_init(token_bucket_rw_t *bucket,
- uint32_t rate,
- uint32_t burst,
- uint32_t now_ts);
+ uint32_t rate,
+ uint32_t burst,
+ uint32_t now_ts);
void token_bucket_rw_adjust(token_bucket_rw_t *bucket,
- uint32_t rate, uint32_t burst);
+ uint32_t rate, uint32_t burst);
void token_bucket_rw_reset(token_bucket_rw_t *bucket,
- uint32_t now_ts);
+ uint32_t now_ts);
#define TB_READ 1
#define TB_WRITE 2
int token_bucket_rw_refill(token_bucket_rw_t *bucket,
- uint32_t now_ts);
+ uint32_t now_ts);
int token_bucket_rw_dec_read(token_bucket_rw_t *bucket,
- ssize_t n);
+ ssize_t n);
int token_bucket_rw_dec_write(token_bucket_rw_t *bucket,
- ssize_t n);
+ ssize_t n);
void token_bucket_rw_dec(token_bucket_rw_t *bucket,
- ssize_t n_read, ssize_t n_written);
+ ssize_t n_read, ssize_t n_written);
static inline size_t token_bucket_rw_get_read(const token_bucket_rw_t *bucket);
static inline size_t
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits