aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/iostat
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>1999-06-24 06:43:21 +0000
committerWarner Losh <imp@FreeBSD.org>1999-06-24 06:43:21 +0000
commit35994ac2c0407bf1a823ec83646a5fae8da7e7ac (patch)
tree7359aba577660c83f921b47102420b1987f565c6 /usr.sbin/iostat
parent02db1769f30fe606ac5e0e6e7108065e4e70dcb3 (diff)
downloadsrc-35994ac2c0407bf1a823ec83646a5fae8da7e7ac.tar.gz
src-35994ac2c0407bf1a823ec83646a5fae8da7e7ac.zip
Two getopts related nits:
o getopt returns -1 rather than EOF on errors o getopt returns '?' for characters it doesn't know about, so don't include them in the getopt options string.
Notes
Notes: svn path=/head/; revision=48171
Diffstat (limited to 'usr.sbin/iostat')
-rw-r--r--usr.sbin/iostat/iostat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/iostat/iostat.c b/usr.sbin/iostat/iostat.c
index e9617256c4ba..28c0c6a6f02f 100644
--- a/usr.sbin/iostat/iostat.c
+++ b/usr.sbin/iostat/iostat.c
@@ -25,7 +25,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: iostat.c,v 1.11 1998/09/16 23:14:47 ken Exp $
+ * $Id: iostat.c,v 1.12 1998/09/20 00:11:14 ken Exp $
*/
/*
* Parts of this program are derived from the original FreeBSD iostat
@@ -185,7 +185,7 @@ main(int argc, char **argv)
matches = NULL;
maxshowdevs = 3;
- while ((c = getopt(argc, argv, "c:CdhIKM:n:N:ot:Tw:?")) != -1) {
+ while ((c = getopt(argc, argv, "c:CdhIKM:n:N:ot:Tw:")) != -1) {
switch(c) {
case 'c':
cflag++;