From 8428fde517e73e5cf391867d86a00e07b20ddbd6 Mon Sep 17 00:00:00 2001 From: Brian Somers Date: Wed, 14 Feb 2007 23:22:33 +0000 Subject: [PATCH] Default output to stdout as the man page suggests. --- sbin/ffsinfo/ffsinfo.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sbin/ffsinfo/ffsinfo.c b/sbin/ffsinfo/ffsinfo.c index 50bb70afdd0..0ef5e9e0e1d 100644 --- a/sbin/ffsinfo/ffsinfo.c +++ b/sbin/ffsinfo/ffsinfo.c @@ -141,7 +141,7 @@ main(int argc, char **argv) cfg_lv = 0xff; cfg_in = -2; cfg_cg = -2; - out_file = NULL; + out_file = "-"; while ((ch = getopt(argc, argv, "g:i:l:o:")) != -1) { switch (ch) { @@ -184,8 +184,6 @@ main(int argc, char **argv) if (argc != 1) usage(); device = *argv; - if (out_file == NULL) - errx(1, "out_file not specified"); /* * Now we try to guess the (raw)device name.