Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Jan 2019 19:55:54 +0000 (UTC)
From:      Oleksandr Tymoshenko <gonzo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r343223 - head/usr.bin/systat
Message-ID:  <201901201955.x0KJtsO8001297@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gonzo
Date: Sun Jan 20 19:55:54 2019
New Revision: 343223
URL: https://svnweb.freebsd.org/changeset/base/343223

Log:
  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

Modified:
  head/usr.bin/systat/devs.c

Modified: head/usr.bin/systat/devs.c
==============================================================================
--- head/usr.bin/systat/devs.c	Sun Jan 20 19:47:33 2019	(r343222)
+++ head/usr.bin/systat/devs.c	Sun Jan 20 19:55:54 2019	(r343223)
@@ -195,7 +195,7 @@ dsmatchselect(const char *args, devstat_select_mode se
 
 	if (!args) {
 		warnx("dsmatchselect: no arguments");
-		return(0);
+		return(1);
 	}
 
 	/*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201901201955.x0KJtsO8001297>