X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/0bfb53a23531bea3aaeadcd1a6f6c372eef96612..af32d40a8ca0b341c082066b2f1e3e83005c1a89:/sbr/smatch.c diff --git a/sbr/smatch.c b/sbr/smatch.c index 4d1d3d68..cb23e8f9 100644 --- a/sbr/smatch.c +++ b/sbr/smatch.c @@ -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 +#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; }