]> diplodocus.org Git - nmh/blobdiff - sbr/seq_del.c
new.c: Order two return statements to match comment.
[nmh] / sbr / seq_del.c
index 670872efb0109b92e1b88f441e520c0901a22867..59e4050d3f9a5b20e909d30244734da41e7e0f56 100644 (file)
@@ -1,6 +1,4 @@
-
-/*
- * seq_del.c -- delete message(s) from a sequence
+/* seq_del.c -- delete message(s) from a sequence
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -51,7 +49,7 @@ seq_delsel (struct msgs *mp, char *cp, int public, int zero)
         */
        if (new_seq) {
            if (!(svector_push_back (mp->msgattrs, strdup (cp)))) {
-               advise (NULL, "strdup failed");
+               inform("strdup failed");
                return 0;
            }
        }
@@ -66,7 +64,7 @@ seq_delsel (struct msgs *mp, char *cp, int public, int zero)
        }
     } else {
        if (new_seq) {
-           advise (NULL, "no such sequence as %s", cp);
+           inform("no such sequence as %s", cp);
            return 0;
        }
     }
@@ -129,6 +127,6 @@ seq_delmsg (struct msgs *mp, char *cp, int msgnum)
        }
     }
 
-    advise (NULL, "no such sequence as %s", cp);
+    inform("no such sequence as %s", cp);
     return 0;
 }