diff options
Diffstat (limited to '')
-rw-r--r-- | doc/examples/nonblocking/cleanup.c | 3 | ||||
-rw-r--r-- | doc/examples/nonblocking/init.c | 3 | ||||
-rw-r--r-- | doc/examples/nonblocking/poll.c | 3 | ||||
-rw-r--r-- | doc/examples/nonblocking/write.c | 3 |
4 files changed, 8 insertions, 4 deletions
diff --git a/doc/examples/nonblocking/cleanup.c b/doc/examples/nonblocking/cleanup.c index 00f07bc..bf54226 100644 --- a/doc/examples/nonblocking/cleanup.c +++ b/doc/examples/nonblocking/cleanup.c @@ -1,7 +1,8 @@ #include <bus.h> #include <stdio.h> -int main() +int +main() { return bus_unlink("/tmp/example-bus") && (perror("cleanup"), 1); } diff --git a/doc/examples/nonblocking/init.c b/doc/examples/nonblocking/init.c index 870e10d..d1325fb 100644 --- a/doc/examples/nonblocking/init.c +++ b/doc/examples/nonblocking/init.c @@ -1,7 +1,8 @@ #include <bus.h> #include <stdio.h> -int main() +int +main() { return bus_create("/tmp/example-bus", 0, NULL) && (perror("init"), 1); } diff --git a/doc/examples/nonblocking/poll.c b/doc/examples/nonblocking/poll.c index 2b0c266..5609317 100644 --- a/doc/examples/nonblocking/poll.c +++ b/doc/examples/nonblocking/poll.c @@ -8,7 +8,8 @@ -int main() +int +main() { bus_t bus; const char *message; diff --git a/doc/examples/nonblocking/write.c b/doc/examples/nonblocking/write.c index 7fe9690..afe957b 100644 --- a/doc/examples/nonblocking/write.c +++ b/doc/examples/nonblocking/write.c @@ -11,7 +11,8 @@ static char message[BUS_MEMORY_SIZE]; -int main(int argc, char *argv[]) +int +main(int argc, char *argv[]) { bus_t bus; if (argc < 2) { |