]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - libratbox/include/rb_linebuf.h
Cope with OPENSSL_VERSION_NUMBER not being a long.
[irc/rqf/shadowircd.git] / libratbox / include / rb_linebuf.h
index 3f1e78b9ceb832f8534038ac6dea611d437b47ad..5644ce36ff77f6c6f22e5ac13056642d8b50e6c5 100644 (file)
  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301
  *  USA
  *
- *  $Id: rb_linebuf.h 24324 2007-08-31 22:05:45Z androsyn $
  */
 
 #ifndef RB_LIB_H
-# error "Do not use linebuf.h directly"                                   
+# error "Do not use linebuf.h directly"
 #endif
 
 #ifndef __LINEBUF_H__
@@ -45,8 +44,8 @@ struct _buf_head;
 typedef struct _buf_line
 {
        char buf[BUF_DATA_SIZE + 2];
-       rb_uint8_t terminated;  /* Whether we've terminated the buffer */
-       rb_uint8_t raw; /* Whether this linebuf may hold 8-bit data */
+       uint8_t terminated;     /* Whether we've terminated the buffer */
+       uint8_t raw;            /* Whether this linebuf may hold 8-bit data */
        int len;                /* How much data we've got */
        int refcount;           /* how many linked lists are we in? */
 } buf_line_t;
@@ -74,7 +73,7 @@ int rb_linebuf_parse(buf_head_t *, char *, int, int);
 int rb_linebuf_get(buf_head_t *, char *, int, int, int);
 void rb_linebuf_putmsg(buf_head_t *, const char *, va_list *, const char *, ...);
 void rb_linebuf_put(buf_head_t *, const char *, ...);
-void rb_linebuf_putbuf(buf_head_t *bufhead, const char *buffer);
+void rb_linebuf_putbuf(buf_head_t * bufhead, const char *buffer);
 void rb_linebuf_attach(buf_head_t *, buf_head_t *);
 void rb_count_rb_linebuf_memory(size_t *, size_t *);
 int rb_linebuf_flush(rb_fde_t *F, buf_head_t *);