X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/4d5b79600a86a6c44aa67db479fc63875958458a..63621a81d16ab743de6b57d47578a9a2c670ad22:/uip/repl.c diff --git a/uip/repl.c b/uip/repl.c index 7f0c7bac..5f2886a2 100644 --- a/uip/repl.c +++ b/uip/repl.c @@ -1,6 +1,4 @@ - -/* - * repl.c -- reply to a message +/* repl.c -- reply to a message * * This code is Copyright (c) 2002, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for @@ -10,6 +8,7 @@ #include #include #include +#include "sbr/m_maildir.h" #define REPL_SWITCHES \ X("group", 0, GROUPSW) \ @@ -40,7 +39,7 @@ X("width columns", 0, WIDTHSW) \ X("version", 0, VERSIONSW) \ X("help", 0, HELPSW) \ - X("file file", 4, FILESW) /* interface from msh */ \ + X("file file", 4, FILESW) \ X("build", 5, BILDSW) /* interface from mhe */ \ X("atfile", 0, ATFILESW) \ X("noatfile", 0, NOATFILESW) \ @@ -225,7 +224,8 @@ main (int argc, char **argv) nwhat = 0; continue; case BILDSW: - buildsw++; /* fall... */ + buildsw++; + /* FALLTHRU */ case NWHATSW: nwhat++; continue; @@ -239,7 +239,7 @@ main (int argc, char **argv) if (fcc) fcc = add (", ", fcc); fcc = add (cp, fcc); - mh_xfree(dp); + free(dp); continue; case FILESW: @@ -336,13 +336,11 @@ 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 { if (msg) adios (NULL, "only one message at a time!"); - else - msg = cp; + msg = cp; } } @@ -388,7 +386,7 @@ try_it_again: i = YESW; break; default: - advise (NULL, "say what?"); + inform("say what?"); break; } }