svn commit: r311753 - stable/10/usr.sbin/pstat
Xin LI
delphij at FreeBSD.org
Mon Jan 9 05:58:50 UTC 2017
Author: delphij
Date: Mon Jan 9 05:58:48 2017
New Revision: 311753
URL: https://svnweb.freebsd.org/changeset/base/311753
Log:
MFC r310611:
- 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.
Modified:
stable/10/usr.sbin/pstat/pstat.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/usr.sbin/pstat/pstat.c
==============================================================================
--- stable/10/usr.sbin/pstat/pstat.c Mon Jan 9 05:57:31 2017 (r311752)
+++ stable/10/usr.sbin/pstat/pstat.c Mon Jan 9 05:58:48 2017 (r311753)
@@ -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