- pstat(8) does not accept any arguments other than getopt() args,

so don't bother to adjust argc/argv after getopt() loop.
 - Make a string pointer constant.

MFC after:	2 weeks
This commit is contained in:
Xin LI 2016-12-26 17:34:27 +00:00
parent 62b0ff4e66
commit ed09c2c161

View File

@ -174,8 +174,6 @@ main(int argc, char *argv[])
default:
usage();
}
argc -= optind;
argv += optind;
/*
* Initialize symbol names list.
@ -339,7 +337,7 @@ static void
ttyprt(struct xtty *xt)
{
int i, j;
char *name;
const char *name;
if (xt->xt_size != sizeof *xt)
errx(1, "struct xtty size mismatch");