aboutsummaryrefslogtreecommitdiff
path: root/bin/chio
diff options
context:
space:
mode:
authorPhilippe Charnier <charnier@FreeBSD.org>1997-06-06 06:32:09 +0000
committerPhilippe Charnier <charnier@FreeBSD.org>1997-06-06 06:32:09 +0000
commit714ec423a045eef69e5f5d4d14f264114e33d4c4 (patch)
tree5cd05a73ab3c4b8f0608b8bd3cdfc4fe9963f139 /bin/chio
parentc70e52b1408a85ae8a9ce4aa18310210c9c12e9d (diff)
downloadsrc-714ec423a045eef69e5f5d4d14f264114e33d4c4.tar.gz
src-714ec423a045eef69e5f5d4d14f264114e33d4c4.zip
Notes
Diffstat (limited to 'bin/chio')
-rw-r--r--bin/chio/chio.c28
1 files changed, 12 insertions, 16 deletions
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 <thorpej@and.com>
@@ -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 "
- "<from ET> <from EU> <to ET> <to EU> [inv]\n", __progname, cname);
+ fprintf(stderr, "usage: chio %s "
+ "<from ET> <from EU> <to ET> <to EU> [inv]\n", cname);
return (1);
}
@@ -301,9 +299,9 @@ do_exchange(cname, argc, argv)
return (0);
usage:
- fprintf(stderr, "usage: %s %s <src ET> <src EU> <dst1 ET> <dst1 EU>\n"
- " [<dst2 ET> <dst2 EU>] [inv1] [inv2]\n",
- __progname, cname);
+ fprintf(stderr,
+ "usage: chio %s <src ET> <src EU> <dst1 ET> <dst1 EU>\n"
+ " [<dst2 ET> <dst2 EU>] [inv1] [inv2]\n", cname);
return (1);
}
@@ -362,8 +360,7 @@ do_position(cname, argc, argv)
return (0);
usage:
- fprintf(stderr, "usage: %s %s <to ET> <to EU> [inv]\n",
- __progname, cname);
+ fprintf(stderr, "usage: chio %s <to ET> <to EU> [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 <picker>\n", __progname, cname);
+ fprintf(stderr, "usage: chio %s <picker>\n", cname);
return (1);
}
@@ -564,8 +561,7 @@ do_status(cname, argc, argv)
return (0);
usage:
- fprintf(stderr, "usage: %s %s [<element type>]\n", __progname,
- cname);
+ fprintf(stderr, "usage: chio %s [<element type>]\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);