Messages passed to errx are not supposed to have a trailing \n. Fix that.

This commit is contained in:
jmmv 2007-08-03 15:34:00 +00:00
parent 89550a7983
commit 2fe103e7dd

View File

@ -1,4 +1,4 @@
/* $NetBSD: ofctl.c,v 1.5 2007/06/06 23:43:56 rjs Exp $ */
/* $NetBSD: ofctl.c,v 1.6 2007/08/03 15:34:00 jmmv Exp $ */
/*-
* Copyright (c) 2006 The NetBSD Foundation, Inc.
@ -497,7 +497,7 @@ main(int argc, char **argv)
}
}
if (errflag)
errx(1, "usage: ofctl [-pl] [-f file] [-r propfile] [-w propfile] [node...]\n");
errx(1, "usage: ofctl [-pl] [-f file] [-r propfile] [-w propfile] [node...]");
if (propfilein != NULL) {
of_proplib = prop_dictionary_internalize_from_file(propfilein);