From c1ebfc97887a8efbd02b25379cc40d1086d0ad46 Mon Sep 17 00:00:00 2001 From: Richard Braun Date: Thu, 4 Jan 2018 00:32:47 +0100 Subject: error: replace error_die with error_check --- test/test_shell.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'test') diff --git a/test/test_shell.c b/test/test_shell.c index 0b63ac0..ee81b20 100644 --- a/test/test_shell.c +++ b/test/test_shell.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015 Richard Braun. + * Copyright (c) 2015-2018 Richard Braun. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -95,10 +95,7 @@ main(int argc, char *argv[]) for (i = 0; i < ARRAY_SIZE(test_shell_cmds); i++) { ret = shell_cmd_register(&test_shell_cmds[i]); - - if (ret) { - error_die(ret); - } + error_check(ret, "shell_cmd_register"); } setbuf(stdin, NULL); -- cgit v1.2.3