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

White space OCD

parent 91d77ac7
...@@ -936,23 +936,23 @@ sighup(void) ...@@ -936,23 +936,23 @@ sighup(void)
static char * static char *
read_format(const char *formatfile) read_format(const char *formatfile)
{ {
FILE *fmtfile; FILE *fmtfile;
size_t len = 0; size_t len = 0;
char *fmt = NULL; char *fmt = NULL;
fmtfile = fopen(formatfile, "r"); fmtfile = fopen(formatfile, "r");
if (fmtfile == NULL) if (fmtfile == NULL)
VUT_Error(1, "Can't open format file (%s)", strerror(errno)); VUT_Error(1, "Can't open format file (%s)", strerror(errno));
if (getline(&fmt, &len, fmtfile) == -1) { if (getline(&fmt, &len, fmtfile) == -1) {
free(fmt); free(fmt);
if (feof(fmtfile)) if (feof(fmtfile))
VUT_Error(1, "Empty format file"); VUT_Error(1, "Empty format file");
else else
VUT_Error(1, "Can't read format from file (%s)", VUT_Error(1, "Can't read format from file (%s)",
strerror(errno)); strerror(errno));
} }
fclose(fmtfile); fclose(fmtfile);
return (fmt); return (fmt);
} }
int int
......
...@@ -40,10 +40,10 @@ ...@@ -40,10 +40,10 @@
"Set the output log format string." \ "Set the output log format string." \
) )
#define NCSA_OPT_f \ #define NCSA_OPT_f \
VOPT("f:", "[-f formatfile]", "Read output format from file", \ VOPT("f:", "[-f formatfile]", "Read output format from file", \
"Read output format from a file. Will read a single line" \ "Read output format from a file. Will read a single line" \
" from the specified file, and use that line as the" \ " from the specified file, and use that line as the" \
" format." \ " 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