]> diplodocus.org Git - nmh/blobdiff - sbr/fmt_new.c
Improve fmttest output
[nmh] / sbr / fmt_new.c
index 3ad71b8..2407cc6 100644 (file)
@@ -1,13 +1,15 @@
-/*
- * 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
  * complete copyright information.
  */
 
-#include <h/mh.h>
-#include <h/utils.h>
+#include "h/mh.h"
+#include "fmt_new.h"
+#include "getcpy.h"
+#include "error.h"
+#include "h/utils.h"
 
 #define QUOTE '\\'
 
@@ -29,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)
@@ -57,7 +59,8 @@ new_fs (char *form, char *format, char *default_fs)
 
 
 void
-free_fs (){
+free_fs(void)
+{
     free (formats);
     formats = 0;
 }