mhl_format (char *file, int length, int width)
{
int i;
- char *bp, *cp, **ip;
+ char *bp, **ip;
char *ap, name[NAMESZ];
struct mcomp *c1;
struct stat st;
&& dev == st.st_dev
&& ino == st.st_ino)
goto out;
- else
- free_queue (&fmthd, &fmttl);
+ free_queue (&fmthd, &fmttl);
}
if ((fp = fopen (etcpath (file), "r")) == NULL)
if (*bp == ';')
continue;
- if ((cp = strchr(bp, '\n')))
- *cp = 0;
+ TrimSuffixC(bp, '\n');
if (*bp == ':') {
(void) add_queue (&fmthd, &fmttl, NULL, bp + 1, CLEARTEXT);
nmh_clear_screen ();
}
else
- printf ("\n");
+ putchar('\n');
break;
default: