X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/d6b2ae5fa68b9a82ffc006c233aef64c5cdb3bd2..10c5b65eb8fefdf84cdb631edcd18160effcdf7e:/sbr/fmt_new.c?ds=sidebyside diff --git a/sbr/fmt_new.c b/sbr/fmt_new.c index 9ee89561..c832e7fa 100644 --- a/sbr/fmt_new.c +++ b/sbr/fmt_new.c @@ -1,6 +1,4 @@ - -/* - * fmt_new.c -- read format file/string and normalize +/* fmt_new.c -- read format file/string and normalize * * This code is Copyright (c) 2002, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for @@ -28,10 +26,9 @@ char * new_fs (char *form, char *format, char *default_fs) { struct stat st; - register FILE *fp; + FILE *fp; - if (formats) - free (formats); + mh_xfree(formats); if (form) { if ((fp = fopen (etcpath (form), "r")) == NULL) @@ -103,7 +100,8 @@ normalize (char *cp) break; case 0: - cp--; /* fall */ + cp--; + /* FALLTHRU */ default: *dp++ = *cp; break;