]> diplodocus.org Git - nmh/blobdiff - sbr/seq_nameok.c
- Fixed bcc to work with sendmail/pipe [Bug 55700].
[nmh] / sbr / seq_nameok.c
index 3942b0e350e1b3be5a4890f7bdf4bb932a24a42b..5fcc1a7fada04684f4d2a090a0338b5eb64204ed 100644 (file)
@@ -1,13 +1,13 @@
-
-/*
- * seq_nameok.c -- check if a sequence name is ok
+/* seq_nameok.c -- check if a sequence name is ok
  *
  * 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 <h/mh.h>
+#include "h/mh.h"
+#include "seq_nameok.h"
+#include "error.h"
 
 
 int
@@ -30,7 +30,7 @@ seq_nameok (char *s)
          strcmp (s, "last") &&
          strcmp (s, "prev") &&
          strcmp (s, "next"))) {
-       inform("illegal sequence name: %s", s);
+        inform("sequence name is reserved: %s", s);
        return 0;
     }
 
@@ -39,7 +39,7 @@ seq_nameok (char *s)
      * an alphabetic character ...
      */
     if (!isalpha ((unsigned char) *s)) {
-       inform("illegal sequence name: %s", s);
+        inform("sequence name must start with letter: %s", s);
        return 0;
     }
 
@@ -48,7 +48,7 @@ seq_nameok (char *s)
      */
     for (pp = s + 1; *pp; pp++)
        if (!isalnum ((unsigned char) *pp)) {
-           inform("illegal sequence name: %s", s);
+            inform("sequence name must be alphanumeric: %s", s);
            return 0;
        }