mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
Since argv is in scope, use argv[0] instead of __progname.
Suggested by: bde
This commit is contained in:
parent
a124f32704
commit
0d5ad2d7ff
1 changed files with 2 additions and 2 deletions
|
|
@ -42,7 +42,7 @@ static const char copyright[] =
|
|||
static char sccsid[] = "@(#)w.c 8.4 (Berkeley) 4/16/94";
|
||||
#endif
|
||||
static const char rcsid[] =
|
||||
"$Id: w.c,v 1.28 1998/06/09 04:35:20 imp Exp $";
|
||||
"$Id: w.c,v 1.29 1998/11/09 01:19:30 steve Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
/*
|
||||
|
|
@ -141,7 +141,7 @@ main(argc, argv)
|
|||
(void) setlocale(LC_ALL, "");
|
||||
|
||||
/* Are we w(1) or uptime(1)? */
|
||||
if (strstr(__progname, "uptime")) {
|
||||
if (strstr(argv[0], "uptime")) {
|
||||
wcmd = 0;
|
||||
p = "";
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue