X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/de4636bb664106d9932ae7acb517e471b848f1f3..e6a316e73b70ee428ec701a5df2bcf795d4b1802:/sbr/smatch.c diff --git a/sbr/smatch.c b/sbr/smatch.c index 4d1d3d68..802e4da0 100644 --- a/sbr/smatch.c +++ b/sbr/smatch.c @@ -1,6 +1,4 @@ - -/* - * 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 @@ -11,11 +9,11 @@ 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; }