diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-05-20 10:36:39 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-05-20 10:36:39 +0200 |
commit | 3c8abc1921c51b654dace98002bdf7ed49f7489c (patch) | |
tree | ba75acf2005bc7a8039c6e5b3fc56cfd9814366b /src/fastd.h | |
parent | 23510adffedd1b8b8b642238c25801e658423d6e (diff) | |
download | fastd-3c8abc1921c51b654dace98002bdf7ed49f7489c.tar fastd-3c8abc1921c51b654dace98002bdf7ed49f7489c.zip |
Add send_all() function to reduce duplicate code
Diffstat (limited to 'src/fastd.h')
-rw-r--r-- | src/fastd.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/fastd.h b/src/fastd.h index 2a4e9ac..4ce5bb4 100644 --- a/src/fastd.h +++ b/src/fastd.h @@ -378,8 +378,6 @@ static inline size_t alignto(size_t l, size_t a) { return ((l+a-1)/a)*a; } -#define FASTD_BUFFER_NULL ((fastd_buffer_t){}) - static inline fastd_buffer_t fastd_buffer_alloc(const fastd_context_t *ctx, size_t len, size_t head_space, size_t tail_space) { size_t base_len = head_space+len+tail_space; void *ptr; |