summaryrefslogtreecommitdiffstats
path: root/bin/chio
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>1997-06-06 06:32:09 +0000
committercharnier <charnier@FreeBSD.org>1997-06-06 06:32:09 +0000
commit58f66f5d2c8a067f80bdc5b30a08c23134f9b79f (patch)
tree394913f8d2342efec0e48ac607e07a316100d0ef /bin/chio
parentd77a8bac2e8a4309c7b2f7c07fa9562531056406 (diff)
downloadFreeBSD-src-58f66f5d2c8a067f80bdc5b30a08c23134f9b79f.zip
FreeBSD-src-58f66f5d2c8a067f80bdc5b30a08c23134f9b79f.tar.gz
Do not use __progname.
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 215df1f..8c5ba5c 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);
OpenPOWER on IntegriCloud