Mercurial > molko
comparison examples/example-notify/example-notify.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 | 29a121241485 |
comparison
equal
deleted
inserted
replaced
546:b7da58230a66 | 547:c7664b679a95 |
---|---|
44 static struct mlk_texture *icon; | 44 static struct mlk_texture *icon; |
45 | 45 |
46 static void | 46 static void |
47 init(void) | 47 init(void) |
48 { | 48 { |
49 int err; | 49 if (mlk_example_init("example-notify") < 0) |
50 | 50 mlk_panic(); |
51 if ((err = mlk_example_init("example-notify")) < 0) | |
52 mlk_panicf("mlk_example_init: %s", mlk_err_string(err)); | |
53 | 51 |
54 icon = &mlk_registry_textures[MLK_REGISTRY_TEXTURE_SWORD]; | 52 icon = &mlk_registry_textures[MLK_REGISTRY_TEXTURE_SWORD]; |
55 } | 53 } |
56 | 54 |
57 static void | 55 static void |