From 1654b51455cd1c890b08685551abafec88111606 Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Mon, 20 Dec 2021 22:25:19 +0100 Subject: [PATCH] usbconfig: actually set the exit code in usage() Oversight in previous commit: usage() had been turned to accept an "exitcode" parameter, but it hasn't been used. MFC after: 2 weeks --- usr.sbin/usbconfig/usbconfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/usbconfig/usbconfig.c b/usr.sbin/usbconfig/usbconfig.c index 49acbf68b33c..81112d957bbb 100644 --- a/usr.sbin/usbconfig/usbconfig.c +++ b/usr.sbin/usbconfig/usbconfig.c @@ -303,7 +303,7 @@ usage(int exitcode) " list" "\n" " do_request " "\n" ); - exit(1); + exit(exitcode); } static void