svn commit: r311752 - stable/11/usr.sbin/pstat
Xin LI
delphij at FreeBSD.org
Mon Jan 9 05:57:32 UTC 2017
Author: delphij
Date: Mon Jan 9 05:57:31 2017
New Revision: 311752
URL: https://svnweb.freebsd.org/changeset/base/311752
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/11/usr.sbin/pstat/pstat.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/usr.sbin/pstat/pstat.c
==============================================================================
--- stable/11/usr.sbin/pstat/pstat.c Mon Jan 9 05:52:30 2017 (r311751)
+++ stable/11/usr.sbin/pstat/pstat.c Mon Jan 9 05:57:31 2017 (r311752)
@@ -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-stable
mailing list