svn commit: r310611 - head/usr.sbin/pstat
Xin LI
delphij at FreeBSD.org
Mon Dec 26 17:34:29 UTC 2016
Author: delphij
Date: Mon Dec 26 17:34:27 2016
New Revision: 310611
URL: https://svnweb.freebsd.org/changeset/base/310611
Log:
- 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
Modified:
head/usr.sbin/pstat/pstat.c
Modified: head/usr.sbin/pstat/pstat.c
==============================================================================
--- head/usr.sbin/pstat/pstat.c Mon Dec 26 17:26:25 2016 (r310610)
+++ head/usr.sbin/pstat/pstat.c Mon Dec 26 17:34:27 2016 (r310611)
@@ -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");
More information about the svn-src-all
mailing list