Don't hardcode srsd as the daemon name, use a define.
[apps/pfixtools.git] / buffer.h
index d0e1c57..60c6f29 100644 (file)
--- a/buffer.h
+++ b/buffer.h
@@ -30,7 +30,7 @@
 /******************************************************************************/
 
 /*
- * Copyright © 2006 Pierre Habouzit
+ * Copyright © 2006-2007 Pierre Habouzit
  */
 
 #ifndef POSTLICYD_BUFFER_H
@@ -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);