X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=buffer.h;h=c94714dabac842b3daaff32efbd7bb466b657efa;hb=52b485c0f261b6b178a35b4737b3f625126b5c74;hp=d58ab174f6b58fdbc36244d2a6581cd2d1c6c8f9;hpb=b1315f7af90c4d8047cf0c8f3c0a00b703676f84;p=apps%2Fpfixtools.git diff --git a/buffer.h b/buffer.h index d58ab17..c94714d 100644 --- a/buffer.h +++ b/buffer.h @@ -1,5 +1,5 @@ /******************************************************************************/ -/* postlicyd: a postfix policy daemon with a lot of features */ +/* pfixtools: a collection of postfix related tools */ /* ~~~~~~~~~ */ /* ________________________________________________________________________ */ /* */ @@ -45,6 +45,8 @@ typedef struct buffer_t { ssize_t size; } buffer_t; +#define BUFFER_INIT {NULL, 0, 0} + DO_INIT(buffer_t, buffer); static inline void buffer_wipe(buffer_t *buf) { p_delete(&buf->data);