Mercurial > molko
comparison examples/example-message/example-message.c @ 547:c7664b679a95
misc: remove error codes for now
author | David Demelier <markand@malikania.fr> |
---|---|
date | Mon, 06 Mar 2023 20:03:00 +0100 |
parents | 88e9bd420a28 |
children | ec334c61bb81 |
comparison
equal
deleted
inserted
replaced
546:b7da58230a66 | 547:c7664b679a95 |
---|---|
42 #define MY (100) | 42 #define MY (100) |
43 | 43 |
44 static void | 44 static void |
45 init(void) | 45 init(void) |
46 { | 46 { |
47 int err; | 47 if (mlk_example_init("example-message") < 0) |
48 | 48 mlk_panic(); |
49 if ((err = mlk_example_init("example-message")) < 0) | |
50 mlk_panicf("mlk_example_init: %s", mlk_err_string(err)); | |
51 } | 49 } |
52 | 50 |
53 static void | 51 static void |
54 handle(struct mlk_state *st, const union mlk_event *ev) | 52 handle(struct mlk_state *st, const union mlk_event *ev) |
55 { | 53 { |