On Fri, Aug 19, 2022 at 12:39:41PM -0600, Todd C. Miller wrote:
> On Fri, 19 Aug 2022 18:32:12 -0000, Klemens Nanni wrote:
> 
> > The manual has it right about -k and -K being mutually exclusive;
> > adapt the internal text.
> >
> > Merge the printf calls while here.
> 
> OK millert@ for making usage match the manual.

Can also do just that.

For install media it could be worth it since a single fprintf(3) call
saves some bits in text, but vnconfig(8) is not on amy install media...


Index: vnconfig.c
===================================================================
RCS file: /cvs/src/sbin/vnconfig/vnconfig.c,v
retrieving revision 1.8
diff -u -p -r1.8 vnconfig.c
--- vnconfig.c  16 Aug 2022 16:18:16 -0000      1.8
+++ vnconfig.c  19 Aug 2022 18:46:17 -0000
@@ -356,7 +356,7 @@ __dead void
 usage(void)
 {
        fprintf(stderr,
-           "usage: vnconfig [-kv] [-K rounds] [-S saltfile] "
+           "usage: vnconfig [-v] [-k | -K rounds [-S saltfile]] "
            "[-t disktype] [vnd_dev] image\n");
        fprintf(stderr,
            "       vnconfig -l [vnd_dev]\n");

Reply via email to