aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/daemon-depedencies/await-ready.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-05-17 14:40:46 +0200
committerMattias Andrée <maandree@operamail.com>2015-05-17 14:40:46 +0200
commit0d44f16f6738c0776edf60b84f49f0c6f875a8fe (patch)
treeacc2a01cea1f7c7458c8ccc6ec4b37fa5ccb5d0f /doc/examples/daemon-depedencies/await-ready.c
parentupdate documentation for bus_poll (diff)
downloadbus-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/daemon-depedencies/await-ready.c')
-rw-r--r--doc/examples/daemon-depedencies/await-ready.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/doc/examples/daemon-depedencies/await-ready.c b/doc/examples/daemon-depedencies/await-ready.c
index a787cea..fea2382 100644
--- a/doc/examples/daemon-depedencies/await-ready.c
+++ b/doc/examples/daemon-depedencies/await-ready.c
@@ -17,7 +17,8 @@ static char *started = NULL;
static char msg[BUS_MEMORY_SIZE];
-static void announce_wait(pid_t pid)
+static void
+announce_wait(pid_t pid)
{
bus_t bus;
int i;
@@ -36,7 +37,8 @@ fail:
}
-static int callback(const char *message, void *user_data)
+static int
+callback(const char *message, void *user_data)
{
int i;
char *arg2;
@@ -80,7 +82,8 @@ static int callback(const char *message, void *user_data)
}
-int main(int argc_, char *argv_[])
+int
+main(int argc_, char *argv_[])
{
bus_t bus;
int i;