summaryrefslogtreecommitdiffstats
path: root/bin/ps/print.c
diff options
context:
space:
mode:
authorjmallett <jmallett@FreeBSD.org>2002-06-05 01:02:13 +0000
committerjmallett <jmallett@FreeBSD.org>2002-06-05 01:02:13 +0000
commit4dd8bac65f219bcc6e533416aef86984188808eb (patch)
tree34023500c5fee70431c90553f853e891961dcdb0 /bin/ps/print.c
parent3139a6b754aa5d477fc3624d52fdcdc994dfecb8 (diff)
downloadFreeBSD-src-4dd8bac65f219bcc6e533416aef86984188808eb.zip
FreeBSD-src-4dd8bac65f219bcc6e533416aef86984188808eb.tar.gz
Use a const char * where it is meant to be used. There's no reason to try
to discard the const qualifier here.
Diffstat (limited to 'bin/ps/print.c')
-rw-r--r--bin/ps/print.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/ps/print.c b/bin/ps/print.c
index 1e1d3a9..fefb005 100644
--- a/bin/ps/print.c
+++ b/bin/ps/print.c
@@ -618,7 +618,8 @@ static void
printval(char *bp, VAR *v)
{
static char ofmt[32] = "%";
- char *fcp, *cp;
+ const char *fcp;
+ char *cp;
cp = ofmt + 1;
fcp = v->fmt;
OpenPOWER on IntegriCloud