print_sw(char *substr, struct swit *swp, char *prefix, FILE *fp)
{
int len, optno;
- register int i;
- register char *cp, *cp1, *sp;
+ int i;
+ char *cp, *cp1, *sp;
char buf[128];
len = strlen(substr);
for (; swp->sw; swp++) {
/* null matches all strings */
- if (!*substr || (ssequal(substr, swp->sw) && len >= swp->minchars)) {
+ if (!*substr || (strncmp(swp->sw, substr, len)==0 &&
+ len >= swp->minchars)) {
optno = 0;
/* next switch */
if ((sp = (&swp[1])->sw)) {