svn commit: r285595 - head/usr.bin/ministat
John-Mark Gurney
jmg at FreeBSD.org
Wed Jul 15 06:14:06 UTC 2015
Author: jmg
Date: Wed Jul 15 06:14:04 2015
New Revision: 285595
URL: https://svnweb.freebsd.org/changeset/base/285595
Log:
fix error message... errx since errno may not be set (if we didn't
parse the full field), and err and errx add their own newline at the
end...
Sponsored by: Netflix, Inc.
Modified:
head/usr.bin/ministat/ministat.c
Modified: head/usr.bin/ministat/ministat.c
==============================================================================
--- head/usr.bin/ministat/ministat.c Wed Jul 15 02:23:55 2015 (r285594)
+++ head/usr.bin/ministat/ministat.c Wed Jul 15 06:14:04 2015 (r285595)
@@ -487,7 +487,7 @@ ReadSet(const char *n, int column, const
d = strtod(t, &p);
if (p != NULL && *p != '\0')
- err(2, "Invalid data on line %d in %s\n", line, n);
+ errx(2, "Invalid data on line %d in %s", line, n);
if (*buf != '\0')
AddPoint(s, d);
}
More information about the svn-src-head
mailing list