summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2017-01-09 05:58:48 +0000
committerdelphij <delphij@FreeBSD.org>2017-01-09 05:58:48 +0000
commit4e3c0d29b7c0eed983ca228c749120cbe832a795 (patch)
tree155127a547be4ecc00c2abc37dfe07ca4724976d /usr.sbin
parentc76534cfa969cea49705c377d13cad7895f68786 (diff)
downloadFreeBSD-src-4e3c0d29b7c0eed983ca228c749120cbe832a795.zip
FreeBSD-src-4e3c0d29b7c0eed983ca228c749120cbe832a795.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