Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/savecore print the missing flag if missing argument...
details: https://anonhg.NetBSD.org/src/rev/c6e72c846514
branches: trunk
changeset: 769548:c6e72c846514
user: christos <christos%NetBSD.org@localhost>
date: Tue Sep 13 19:55:28 2011 +0000
description:
print the missing flag if missing argument...
diffstat:
sbin/savecore/savecore.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r aba9eed9d280 -r c6e72c846514 sbin/savecore/savecore.c
--- a/sbin/savecore/savecore.c Tue Sep 13 19:35:12 2011 +0000
+++ b/sbin/savecore/savecore.c Tue Sep 13 19:55:28 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: savecore.c,v 1.83 2011/09/12 21:22:07 christos Exp $ */
+/* $NetBSD: savecore.c,v 1.84 2011/09/13 19:55:28 christos Exp $ */
/*-
* Copyright (c) 1986, 1992, 1993
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)savecore.c 8.5 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: savecore.c,v 1.83 2011/09/12 21:22:07 christos Exp $");
+__RCSID("$NetBSD: savecore.c,v 1.84 2011/09/13 19:55:28 christos Exp $");
#endif
#endif /* not lint */
@@ -210,6 +210,7 @@
usage("Invalid compression `%s'", optarg);
break;
case '?':
+ usage("Missing argument for flag `%c'", optopt);
default:
usage("Unknown flag `%c'", ch);
}
Home |
Main Index |
Thread Index |
Old Index