X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/177f020f122827214159c46dcfe7ded1e3c8d1c3..6a420d96a080e04da6c441f88cc52e60fe661089:/sbr/fmt_new.c diff --git a/sbr/fmt_new.c b/sbr/fmt_new.c index c832e7fa..2407cc62 100644 --- a/sbr/fmt_new.c +++ b/sbr/fmt_new.c @@ -5,8 +5,11 @@ * complete copyright information. */ -#include -#include +#include "h/mh.h" +#include "fmt_new.h" +#include "getcpy.h" +#include "error.h" +#include "h/utils.h" #define QUOTE '\\' @@ -28,7 +31,7 @@ new_fs (char *form, char *format, char *default_fs) struct stat st; FILE *fp; - mh_xfree(formats); + free(formats); if (form) { if ((fp = fopen (etcpath (form), "r")) == NULL) @@ -56,7 +59,8 @@ new_fs (char *form, char *format, char *default_fs) void -free_fs (){ +free_fs(void) +{ free (formats); formats = 0; }