diff tests/test-plugin-plugin.c @ 1065:d8db515adbd4

misc: remove usage of BSD errx?() functions
author David Demelier <markand@malikania.fr>
date Mon, 12 Jul 2021 20:40:45 +0200
parents 8f8ce47aba8a
children f06e9761cc90
line wrap: on
line diff
--- a/tests/test-plugin-plugin.c	Mon Jul 05 21:50:14 2021 +0200
+++ b/tests/test-plugin-plugin.c	Mon Jul 12 20:40:45 2021 +0200
@@ -16,7 +16,6 @@
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-#include <err.h>
 #include <string.h>
 
 #define GREATEST_USE_ABBREVS 0
@@ -66,7 +65,7 @@
 	plugin = js_plugin_open("plugin", TOP "/plugins/plugin/plugin.js");
 
 	if (!plugin)
-		errx(1, "could not load plugin");
+		irc_util_die("could not load plugin\n");
 
 	/* Prepare a fake plugin. */
 	fake = irc_util_calloc(1, sizeof (*fake));