Default output to stdout as the man page suggests.

This commit is contained in:
Brian Somers 2007-02-14 23:22:33 +00:00
parent 30e3c0fa25
commit 8428fde517

View file

@ -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.