From 8c92e079074bfafcfc10b4ae371e22d73b46b10a Mon Sep 17 00:00:00 2001 From: bde 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'. --- usr.bin/ldd/ldd.1 | 2 +- usr.bin/ldd/ldd.c | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) (limited to 'usr.bin/ldd') diff --git a/usr.bin/ldd/ldd.1 b/usr.bin/ldd/ldd.1 index 1a09103..4b499fe 100644 --- a/usr.bin/ldd/ldd.1 +++ b/usr.bin/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/usr.bin/ldd/ldd.c b/usr.bin/ldd/ldd.c index 94c8889..abd0106 100644 --- a/usr.bin/ldd/ldd.c +++ b/usr.bin/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.1