diff 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
line wrap: on
line diff
--- a/examples/example-cursor/example-cursor.c	Mon Mar 06 20:01:00 2023 +0100
+++ b/examples/example-cursor/example-cursor.c	Mon Mar 06 20:03:00 2023 +0100
@@ -47,10 +47,8 @@
 static void
 init(void)
 {
-	int err;
-
-	if ((err = mlk_example_init("example-cursor")) < 0)
-		mlk_panicf("mlk_example_init: %s", mlk_err_string(err));
+	if (mlk_example_init("example-cursor") < 0)
+		mlk_panic();
 }
 
 static void