diff --git a/bin/chio/chio.c b/bin/chio/chio.c index 215df1f057b7..8c5ba5c39ba9 100644 --- a/bin/chio/chio.c +++ b/bin/chio/chio.c @@ -1,4 +1,4 @@ -/* $Id: chio.c,v 1.1.1.1 1997/03/06 15:30:06 joerg Exp $ */ +/* $Id: chio.c,v 1.2 1997/06/02 06:25:19 charnier Exp $ */ /* * Copyright (c) 1996 Jason R. Thorpe @@ -47,8 +47,6 @@ #include "defs.h" #include "pathnames.h" -extern char *__progname; /* from crt0.o */ - static void usage __P((void)); static void cleanup __P((void)); static int parse_element_type __P((char *)); @@ -208,8 +206,8 @@ do_move(cname, argc, argv) return (0); usage: - fprintf(stderr, "usage: %s %s " - " [inv]\n", __progname, cname); + fprintf(stderr, "usage: chio %s " + " [inv]\n", cname); return (1); } @@ -301,9 +299,9 @@ do_exchange(cname, argc, argv) return (0); usage: - fprintf(stderr, "usage: %s %s \n" - " [ ] [inv1] [inv2]\n", - __progname, cname); + fprintf(stderr, + "usage: chio %s \n" + " [ ] [inv1] [inv2]\n", cname); return (1); } @@ -362,8 +360,7 @@ do_position(cname, argc, argv) return (0); usage: - fprintf(stderr, "usage: %s %s [inv]\n", - __progname, cname); + fprintf(stderr, "usage: chio %s [inv]\n", cname); return (1); } @@ -399,7 +396,7 @@ do_params(cname, argc, argv) return (0); usage: - fprintf(stderr, "usage: %s %s\n", __progname, cname); + fprintf(stderr, "usage: chio %s\n", cname); return (1); } @@ -426,7 +423,7 @@ do_getpicker(cname, argc, argv) return (0); usage: - fprintf(stderr, "usage: %s %s\n", __progname, cname); + fprintf(stderr, "usage: chio %s\n", cname); return (1); } @@ -455,7 +452,7 @@ do_setpicker(cname, argc, argv) return (0); usage: - fprintf(stderr, "usage: %s %s \n", __progname, cname); + fprintf(stderr, "usage: chio %s \n", cname); return (1); } @@ -564,8 +561,7 @@ do_status(cname, argc, argv) return (0); usage: - fprintf(stderr, "usage: %s %s []\n", __progname, - cname); + fprintf(stderr, "usage: chio %s []\n", cname); return (1); } @@ -662,7 +658,7 @@ usage() { int i; - fprintf(stderr, "usage: %s [-f changer] command [args ...]\n", __progname); + fprintf(stderr, "usage: chio [-f changer] command [args ...]\n"); fprintf(stderr, "commands:"); for (i = 0; commands[i].cc_name; i++) fprintf(stderr, " %s", commands[i].cc_name);