diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-05-17 14:40:46 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-05-17 14:40:46 +0200 |
commit | 0d44f16f6738c0776edf60b84f49f0c6f875a8fe (patch) | |
tree | acc2a01cea1f7c7458c8ccc6ec4b37fa5ccb5d0f /doc/examples/timed/init.c | |
parent | update documentation for bus_poll (diff) | |
download | bus-0d44f16f6738c0776edf60b84f49f0c6f875a8fe.tar.gz bus-0d44f16f6738c0776edf60b84f49f0c6f875a8fe.tar.bz2 bus-0d44f16f6738c0776edf60b84f49f0c6f875a8fe.tar.xz |
style + add timed read example
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'doc/examples/timed/init.c')
-rw-r--r-- | doc/examples/timed/init.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/examples/timed/init.c b/doc/examples/timed/init.c index 870e10d..d1325fb 100644 --- a/doc/examples/timed/init.c +++ b/doc/examples/timed/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); } |