diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2014-12-20 12:34:14 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2014-12-20 12:34:14 +0000 |
commit | 0d82edd9f8bebb396a9154d4e1003340dbf6b967 (patch) | |
tree | 0659c834f387f3504944a610ed6858b9e268e6c7 /src/libstddjb/iobufferk_init.c | |
parent | 2436785702b47996e9f0e281df0d6027660ec914 (diff) | |
download | skalibs-0d82edd9f8bebb396a9154d4e1003340dbf6b967.tar.xz |
Lots of cosmetic fixes.
sha256 documented.
Diffstat (limited to 'src/libstddjb/iobufferk_init.c')
-rw-r--r-- | src/libstddjb/iobufferk_init.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libstddjb/iobufferk_init.c b/src/libstddjb/iobufferk_init.c index 03f7fae..7affabd 100644 --- a/src/libstddjb/iobufferk_init.c +++ b/src/libstddjb/iobufferk_init.c @@ -9,7 +9,7 @@ #include <skalibs/djbunix.h> #include <skalibs/iobuffer.h> -static int iobufferk_init_0 (iobufferk_ref k) +static int iobufferk_init_0 (iobufferk *k) { register int fd = open_write("/dev/null") ; if (fd < 0) return 0 ; @@ -23,13 +23,13 @@ static int iobufferk_init_0 (iobufferk_ref k) return 1 ; } -static int iobufferk_nofd (iobufferk_ref k) +static int iobufferk_nofd (iobufferk *k) { k->p[0] = k->p[1] = -1 ; return 1 ; } -static int iobufferk_init_3 (iobufferk_ref k) +static int iobufferk_init_3 (iobufferk *k) { return (pipenbcoe(k->p) >= 0) ; } @@ -39,7 +39,7 @@ static iobufferk_io_func_t_ref iobufferk_init_f[4] = &iobufferk_init_0, &iobufferk_nofd, &iobufferk_nofd, &iobufferk_init_3 } ; -int iobufferk_init (iobufferk_ref k, int fdin, int fdout) +int iobufferk_init (iobufferk *k, int fdin, int fdout) { iobufferk tmp ; struct stat st ; @@ -67,7 +67,7 @@ int iobufferk_init (iobufferk_ref k, int fdin, int fdout) #include <errno.h> #include <skalibs/iobuffer.h> -int iobufferk_init (iobufferk_ref k, int fdin, int fdout) +int iobufferk_init (iobufferk *k, int fdin, int fdout) { (void)k ; (void)fdin ; |