Module Name: src Committed By: christos Date: Tue Jan 29 01:06:15 UTC 2013
Modified Files: src/usr.sbin/makefs: makefs.c Log Message: deal with options that don't have a single letter argument. To generate a diff of this commit: cvs rdiff -u -r1.41 -r1.42 src/usr.sbin/makefs/makefs.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.sbin/makefs/makefs.c diff -u src/usr.sbin/makefs/makefs.c:1.41 src/usr.sbin/makefs/makefs.c:1.42 --- src/usr.sbin/makefs/makefs.c:1.41 Mon Jan 28 16:03:27 2013 +++ src/usr.sbin/makefs/makefs.c Mon Jan 28 20:06:15 2013 @@ -1,4 +1,4 @@ -/* $NetBSD: makefs.c,v 1.41 2013/01/28 21:03:27 christos Exp $ */ +/* $NetBSD: makefs.c,v 1.42 2013/01/29 01:06:15 christos Exp $ */ /* * Copyright (c) 2001-2003 Wasabi Systems, Inc. @@ -41,7 +41,7 @@ #include <sys/cdefs.h> #if defined(__RCSID) && !defined(__lint) -__RCSID("$NetBSD: makefs.c,v 1.41 2013/01/28 21:03:27 christos Exp $"); +__RCSID("$NetBSD: makefs.c,v 1.42 2013/01/29 01:06:15 christos Exp $"); #endif /* !__lint */ #include <assert.h> @@ -414,7 +414,9 @@ usage(fstype_t *fstype, fsinfo_t *fsopti fprintf(stderr, "\n%s specific options:\n", fstype->type); for (i = 0; o[i].name != NULL; i++) - fprintf(stderr, "\t%c,%20.20s\t%s\n", o[i].letter, + fprintf(stderr, "\t%c%c%20.20s\t%s\n", + o[i].letter ? o[i].letter : ' ', + o[i].letter ? ',' : ' ', o[i].name, o[i].desc); } exit(1);