Renamed ssequal() to isprefix(), because that's what it checks.
[mmh] / sbr / print_sw.c
index 6f0c981..7924fbc 100644 (file)
@@ -20,7 +20,7 @@ print_sw(char *substr, struct swit *swp, char *prefix, FILE *fp)
        len = strlen(substr);
        for (; swp->sw; swp++) {
                /* null matches all strings */
-               if (!*substr || (ssequal(substr, swp->sw) && len >= swp->minchars)) {
+               if (!*substr || (isprefix(substr, swp->sw) && len >= swp->minchars)) {
                        optno = 0;
                        /* next switch */
                        if ((sp = (&swp[1])->sw)) {