From e457729f18f26a949f464f58bb905c5878740125 Mon Sep 17 00:00:00 2001 From: Oleksandr Tymoshenko Date: Sun, 20 Jan 2019 19:55:54 +0000 Subject: [PATCH] Fix inconsistency in return values introduced by r343222 Consistently return 1 or the case of missing arguments in both functions PR: 219689 MFC after: 1 week X-MFC-With: 343222 --- usr.bin/systat/devs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/systat/devs.c b/usr.bin/systat/devs.c index e1c12eacbe74..c802a843eb2c 100644 --- a/usr.bin/systat/devs.c +++ b/usr.bin/systat/devs.c @@ -195,7 +195,7 @@ dsmatchselect(const char *args, devstat_select_mode select_mode, int maxshowdevs if (!args) { warnx("dsmatchselect: no arguments"); - return(0); + return(1); } /*