Remove __progname; add progname set to argv[0] in each main().

This commit is contained in:
stag019
2015-03-09 13:57:04 -04:00
parent 33ae6d8ca3
commit 6438ae2591
5 changed files with 16 additions and 6 deletions

View File

@@ -24,6 +24,8 @@ SLONG options = 0;
SLONG fillchar = 0;
char smartlinkstartsymbol[256];
char *progname;
/*
* Print the usagescreen
*
@@ -52,6 +54,8 @@ main(int argc, char *argv[])
if (argc == 1)
usage();
progname = argv[0];
while ((ch = getopt(argc, argv, "m:n:o:p:s:t")) != -1) {
switch (ch) {
case 'm':