Do not use __progname.
This commit is contained in:
parent
c70e52b140
commit
714ec423a0
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user