X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fscan.c;h=a53a5bad51522dfbf3ea4c35347c59ed5f3efb6c;hb=78c6358d8c8c1ee74bf65c672d958e4eae17ee37;hp=1f9b8c0d6891c1ad350e81fc06be4dc66c63eafb;hpb=1691e80890e5d8ba258c51c214a3e91880e1db2b;p=mmh diff --git a/uip/scan.c b/uip/scan.c index 1f9b8c0..a53a5ba 100644 --- a/uip/scan.c +++ b/uip/scan.c @@ -3,12 +3,17 @@ * scan.c -- display a one-line "scan" listing of folder or messages * * $Id$ + * + * This code is Copyright (c) 2002, by the authors of nmh. See the + * COPYRIGHT file in the root directory of the nmh distribution for + * complete copyright information. */ #include #include #include -#include +#include +#include #include /* @@ -42,7 +47,7 @@ static struct swit switches[] = { #define VERSIONSW 10 { "version", 0 }, #define HELPSW 11 - { "help", 4 }, + { "help", 0 }, { NULL, 0 } }; @@ -315,7 +320,7 @@ main (int argc, char **argv) switch (state = scan (in, msgnum, 0, nfs, width, msgnum == mp->curmsg, unseen, - hdrflag ? folder : NULL, 0L, 1)) { + folder, 0L, 1)) { case SCNMSG: case SCNENC: case SCNERR: @@ -347,5 +352,5 @@ main (int argc, char **argv) if (clearflag) clear_screen (); - done (0); + return done (0); }