X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/8a14191c0a0ad15bb8f35b49748c75c1e0a8c2f4..63621a81d16ab743de6b57d47578a9a2c670ad22:/uip/scan.c diff --git a/uip/scan.c b/uip/scan.c index eb9e8fc2..b0c64f1c 100644 --- a/uip/scan.c +++ b/uip/scan.c @@ -1,6 +1,4 @@ - -/* - * scan.c -- display a one-line "scan" listing of folder or messages +/* scan.c -- display a one-line "scan" listing of folder or messages * * This code is Copyright (c) 2002, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for @@ -13,6 +11,8 @@ #include #include #include +#include "sbr/m_maildir.h" +#include "sbr/terminal.h" #define SCAN_SWITCHES \ X("clear", 0, CLRSW) \ @@ -127,10 +127,9 @@ main (int argc, char **argv) if (*cp == '+' || *cp == '@') { if (folder) adios (NULL, "only one folder at a time!"); - else - folder = pluspath (cp); + folder = pluspath (cp); } else - app_msgarg(&msgs, cp); + app_msgarg(&msgs, cp); } if (!context_find ("path")) @@ -222,7 +221,7 @@ main (int argc, char **argv) ivector_push_back (seqnum, seq_getnum (mp, *ap)); num_unseen_seq = i; - mh_xfree(dp); + free(dp); } ontty = isatty (fileno (stdout));