Commit cff85bf8 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

White space OCD

parent 91d77ac7
......@@ -936,23 +936,23 @@ sighup(void)
static char *
read_format(const char *formatfile)
{
FILE *fmtfile;
size_t len = 0;
char *fmt = NULL;
fmtfile = fopen(formatfile, "r");
if (fmtfile == NULL)
VUT_Error(1, "Can't open format file (%s)", strerror(errno));
if (getline(&fmt, &len, fmtfile) == -1) {
free(fmt);
if (feof(fmtfile))
VUT_Error(1, "Empty format file");
else
VUT_Error(1, "Can't read format from file (%s)",
FILE *fmtfile;
size_t len = 0;
char *fmt = NULL;
fmtfile = fopen(formatfile, "r");
if (fmtfile == NULL)
VUT_Error(1, "Can't open format file (%s)", strerror(errno));
if (getline(&fmt, &len, fmtfile) == -1) {
free(fmt);
if (feof(fmtfile))
VUT_Error(1, "Empty format file");
else
VUT_Error(1, "Can't read format from file (%s)",
strerror(errno));
}
fclose(fmtfile);
return (fmt);
}
fclose(fmtfile);
return (fmt);
}
int
......
......@@ -40,10 +40,10 @@
"Set the output log format string." \
)
#define NCSA_OPT_f \
VOPT("f:", "[-f formatfile]", "Read output format from file", \
"Read output format from a file. Will read a single line" \
" from the specified file, and use that line as the" \
#define NCSA_OPT_f \
VOPT("f:", "[-f formatfile]", "Read output format from file", \
"Read output format from a file. Will read a single line" \
" from the specified file, and use that line as the" \
" format." \
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment