summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2017-01-09 05:57:31 +0000
committerdelphij <delphij@FreeBSD.org>2017-01-09 05:57:31 +0000
commit86933963269d3bccf744ed2af7b152f6e2d9a4a7 (patch)
tree10982fbed504234545879ba1e1a88ac1c02e1eaf /usr.sbin
parent937f76dd5c90e3a20e577a66603310f54ef164fc (diff)
downloadFreeBSD-src-86933963269d3bccf744ed2af7b152f6e2d9a4a7.zip
FreeBSD-src-86933963269d3bccf744ed2af7b152f6e2d9a4a7.tar.gz
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.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pstat/pstat.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.sbin/pstat/pstat.c b/usr.sbin/pstat/pstat.c
index 2017841..b5ceb2e 100644
--- a/usr.sbin/pstat/pstat.c
+++ b/usr.sbin/pstat/pstat.c
@@ -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");
OpenPOWER on IntegriCloud