diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/include/skalibs/gol.h | 4 | ||||
-rw-r--r-- | src/libstddjb/fd_sync.c | 8 |
2 files changed, 7 insertions, 5 deletions
diff --git a/src/include/skalibs/gol.h b/src/include/skalibs/gol.h index bcab96c..8a9d94c 100644 --- a/src/include/skalibs/gol.h +++ b/src/include/skalibs/gol.h @@ -9,7 +9,7 @@ #include <skalibs/uint64.h> -typedef struct gol_bool_s gol_bool, gol_bool ; +typedef struct gol_bool_s gol_bool, *gol_bool_ref ; struct gol_bool_s { char const *lo ; @@ -18,7 +18,7 @@ struct gol_bool_s uint64_t mask ; } ; -typedef struct gol_arg_s gol_arg, gol_arg_ref ; +typedef struct gol_arg_s gol_arg, *gol_arg_ref ; struct gol_arg_s { char const *lo ; diff --git a/src/libstddjb/fd_sync.c b/src/libstddjb/fd_sync.c index e978151..c4d359b 100644 --- a/src/libstddjb/fd_sync.c +++ b/src/libstddjb/fd_sync.c @@ -1,14 +1,16 @@ /* ISC license. */ +#include <skalibs/nonposix.h> /* lol MacOS */ + #include <unistd.h> #include <errno.h> + #include <skalibs/djbunix.h> int fd_sync (int fd) { int r ; - do - r = fsync(fd) ; - while ((r == -1) && (errno == EINTR)) ; + do r = fsync(fd) ; + while (r == -1 && errno == EINTR) ; return r ; } |