]> diplodocus.org Git - nmh/blobdiff - sbr/smatch.c
context_replace.c: Move interface to own file.
[nmh] / sbr / smatch.c
index 4d1d3d6814b7f977897a2dbd22819de3ee220788..cb23e8f901539bcc7a2b14e74bc31ed0726bf6e1 100644 (file)
@@ -1,21 +1,19 @@
-
-/*
- * smatch.c -- match a switch (option)
+/* smatch.c -- match a switch (option)
  *
  * 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"
 
 
 int
-smatch(char *string, struct swit *swp)
+smatch(const char *string, const struct swit *swp)
 {
-    char *sp, *tcp;
+    const char *sp, *tcp;
     int firstone, len;
-    struct swit *tp;
+    const struct swit *tp;
 
     firstone = UNKWNSW;
 
@@ -43,5 +41,5 @@ smatch(char *string, struct swit *swp)
            firstone = AMBIGSW;
     }
 
-    return (firstone);
+    return firstone;
 }