- if ((fp = fopen (etcpath (form), "r")) == NULL)
- adios (form, "unable to open format file");
-
- if (fstat (fileno (fp), &st) == -1)
- adios (form, "unable to stat format file");
-
- formats = mh_xmalloc ((size_t) st.st_size + 1);
-
- if (read (fileno(fp), formats, (int) st.st_size) != st.st_size)
- adios (form, "error reading format file");
-
+ if ((fp = fopen(etcpath(form), "r")) == NULL) {
+ adios(form, "unable to open format file");
+ }
+ if (fstat(fileno(fp), &st) == -1) {
+ adios(form, "unable to stat format file");
+ }
+ formats = mh_xmalloc((size_t) st.st_size + 1);
+ if (read(fileno(fp), formats, (int)st.st_size) != st.st_size) {
+ adios(form, "error reading format file");
+ }