diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2014-12-20 01:15:21 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2014-12-20 01:15:21 +0000 |
commit | 2436785702b47996e9f0e281df0d6027660ec914 (patch) | |
tree | 8b84e6596145521dcbee951993c4eb6a2e86ec00 /src/include/skalibs/iobuffer.h | |
parent | 55e4b1ebca5d6e7eb0382b3be2154d376f36909e (diff) | |
download | skalibs-2436785702b47996e9f0e281df0d6027660ec914.tar.xz |
Cosmetic fixes in iobuffer (was looking for a bug, but it wasn't there)
Diffstat (limited to 'src/include/skalibs/iobuffer.h')
-rw-r--r-- | src/include/skalibs/iobuffer.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/include/skalibs/iobuffer.h b/src/include/skalibs/iobuffer.h index c1864cf..d9d44d8 100644 --- a/src/include/skalibs/iobuffer.h +++ b/src/include/skalibs/iobuffer.h @@ -3,7 +3,7 @@ #ifndef IOBUFFER_H #define IOBUFFER_H -#define IOBUFFER_SIZE 65536U +#define IOBUFFER_SIZE 65537U /* iobufferu */ @@ -19,10 +19,10 @@ struct iobufferu_s char *buf ; } ; -extern int iobufferu_init (iobufferu_ref, int, int) ; -extern int iobufferu_fill (iobufferu_ref) ; -extern int iobufferu_flush (iobufferu_ref) ; -extern void iobufferu_finish (iobufferu_ref) ; +extern int iobufferu_init (iobufferu *, int, int) ; +extern int iobufferu_fill (iobufferu *) ; +extern int iobufferu_flush (iobufferu *) ; +extern void iobufferu_finish (iobufferu *) ; #define iobufferu_len(u) buffer_len(&(u)->b[0]) #define iobufferu_available(u) buffer_available(&(u)->b[1]) @@ -50,9 +50,9 @@ struct iobufferk_s unsigned int nb : 2 ; } ; -typedef int iobufferk_io_func_t (iobufferk_ref) ; +typedef int iobufferk_io_func_t (iobufferk *) ; typedef iobufferk_io_func_t *iobufferk_io_func_t_ref ; -typedef void iobufferk_finish_func_t (iobufferk_ref) ; +typedef void iobufferk_finish_func_t (iobufferk *) ; typedef iobufferk_finish_func_t *iobufferk_finish_func_t_ref ; extern iobufferk_io_func_t iobufferk_nosys ; @@ -94,13 +94,13 @@ struct iobuffer_s unsigned int isk : 1 ; } ; -extern int iobuffer_ufromk (iobufferu_ref, iobufferk_ref) ; -extern int iobuffer_kfromu (iobufferk_ref, iobufferu_ref) ; -extern int iobuffer_salvage (iobuffer_ref) ; +extern int iobuffer_ufromk (iobufferu *, iobufferk *) ; +extern int iobuffer_kfromu (iobufferk *, iobufferu *) ; +extern int iobuffer_salvage (iobuffer *) ; -extern int iobuffer_init (iobuffer_ref, int, int) ; -extern int iobuffer_fill (iobuffer_ref) ; -extern int iobuffer_flush (iobuffer_ref) ; +extern int iobuffer_init (iobuffer *, int, int) ; +extern int iobuffer_fill (iobuffer *) ; +extern int iobuffer_flush (iobuffer *) ; #define iobuffer_finish(b) ((b)->isk ? iobufferk_finish(&(b)->x.k) : iobufferu_finish(&(b)->x.u)) #define iobuffer_len(b) ((b)->isk ? iobufferk_len(&(b)->x.k) : iobufferu_len(&(b)->x.u)) |