Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/pkg_install/admin Make usage message match that of ...



details:   https://anonhg.NetBSD.org/src/rev/77a35068f7bb
branches:  trunk
changeset: 504086:77a35068f7bb
user:      hubertf <hubertf%NetBSD.org@localhost>
date:      Wed Feb 21 13:12:47 2001 +0000

description:
Make usage message match that of other pkg_* programs:
 * user lowercase "usage"
 * do not use __progname/getprogname() to make this build on old systems
   (the pkg_install pkg is intended to run on 1.4 and maybe 1.3 too...)

diffstat:

 usr.sbin/pkg_install/admin/main.c |  9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diffs (33 lines):

diff -r e5623898f8af -r 77a35068f7bb usr.sbin/pkg_install/admin/main.c
--- a/usr.sbin/pkg_install/admin/main.c Wed Feb 21 13:09:18 2001 +0000
+++ b/usr.sbin/pkg_install/admin/main.c Wed Feb 21 13:12:47 2001 +0000
@@ -1,8 +1,8 @@
-/*     $NetBSD: main.c,v 1.19 2001/02/19 23:22:46 cgd Exp $    */
+/*     $NetBSD: main.c,v 1.20 2001/02/21 13:12:47 hubertf Exp $        */
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: main.c,v 1.19 2001/02/19 23:22:46 cgd Exp $");
+__RCSID("$NetBSD: main.c,v 1.20 2001/02/21 13:12:47 hubertf Exp $");
 #endif
 
 /*
@@ -549,7 +549,7 @@
 void 
 usage(void)
 {
-       printf("Usage: %s command args ...\n"
+       printf("usage: pkg_admin command args ...\n"
            "Where 'commands' and 'args' are:\n"
            " rebuild          - rebuild pkgdb from +CONTENTS files\n"
            " check [pkg ...]  - check md5 checksum of installed files\n"
@@ -557,8 +557,7 @@
            " add key value    - add key & value\n"
            " delete key       - delete reference to key\n"
 #endif
-           " dump             - dump database\n"
-           , getprogname());
+           " dump             - dump database\n");
        exit(1);
 }
 



Home | Main Index | Thread Index | Old Index