Mercurial > molko
comparison examples/example-cursor/example-cursor.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 | f45a023f6690 |
children | 97af110e9e4d |
comparison
equal
deleted
inserted
replaced
546:b7da58230a66 | 547:c7664b679a95 |
---|---|
45 }; | 45 }; |
46 | 46 |
47 static void | 47 static void |
48 init(void) | 48 init(void) |
49 { | 49 { |
50 int err; | 50 if (mlk_example_init("example-cursor") < 0) |
51 | 51 mlk_panic(); |
52 if ((err = mlk_example_init("example-cursor")) < 0) | |
53 mlk_panicf("mlk_example_init: %s", mlk_err_string(err)); | |
54 } | 52 } |
55 | 53 |
56 static void | 54 static void |
57 change(enum mlk_window_cursor cursor) | 55 change(enum mlk_window_cursor cursor) |
58 { | 56 { |