From 45f4c7f97cc978e1b228af3c9fed6135893ffab0 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Sat, 30 Nov 1996 16:12:46 +0000 Subject: Made the synopsis in the man page conform to the style guide. Made the usage message conform to the style guide. Don't use the implementation variable `__progname'. --- gnu/usr.bin/ld/ldd/ldd.1 | 2 +- gnu/usr.bin/ld/ldd/ldd.c | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) (limited to 'gnu/usr.bin') diff --git a/gnu/usr.bin/ld/ldd/ldd.1 b/gnu/usr.bin/ld/ldd/ldd.1 index 1a0910370da3..4b499fe2fc9f 100644 --- a/gnu/usr.bin/ld/ldd/ldd.1 +++ b/gnu/usr.bin/ld/ldd/ldd.1 @@ -6,8 +6,8 @@ .Nd list dynamic object dependencies .Sh SYNOPSIS .Nm ldd -.Op Fl f Ar format .Op Fl v +.Op Fl f Ar format .Ar program ... .Sh DESCRIPTION .Nm ldd diff --git a/gnu/usr.bin/ld/ldd/ldd.c b/gnu/usr.bin/ld/ldd/ldd.c index 94c888903b68..abd0106fdafe 100644 --- a/gnu/usr.bin/ld/ldd/ldd.c +++ b/gnu/usr.bin/ld/ldd/ldd.c @@ -27,7 +27,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: ldd.c,v 1.8 1996/10/29 18:45:20 peter Exp $ + * $Id: ldd.c,v 1.9 1996/11/22 13:58:03 peter Exp $ */ #include @@ -50,11 +50,7 @@ extern int error_count; void usage() { - extern char *__progname; - - fprintf(stderr, "Usage: %s [-f format] [-v] ...\n", - __progname); - + fprintf(stderr, "usage: ldd [-v] [-f format] program ...\n"); exit(1); } -- cgit v1.3