summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjmallett <jmallett@FreeBSD.org>2002-05-15 09:49:59 +0000
committerjmallett <jmallett@FreeBSD.org>2002-05-15 09:49:59 +0000
commit3de05bf2892454157d6e1723df568711f55ec321 (patch)
tree48c7a61e2db2fa00b4919656bb08b0a64d90b2f8
parentc0b64a6d1bbdc8c2485ddc07af94f697ab9d8914 (diff)
downloadFreeBSD-src-3de05bf2892454157d6e1723df568711f55ec321.zip
FreeBSD-src-3de05bf2892454157d6e1723df568711f55ec321.tar.gz
Make 'user' and 'group' const as to not discard the qualifier from the
functions we use to assign them. Doesn't seem to be anything else that relies on these being non-const.
-rw-r--r--bin/ls/ls.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/ls/ls.c b/bin/ls/ls.c
index d506065..5d88e38 100644
--- a/bin/ls/ls.c
+++ b/bin/ls/ls.c
@@ -486,7 +486,8 @@ display(FTSENT *p, FTSENT *list)
size_t flen, ulen, glen;
char *initmax;
int entries, needstats;
- char *user, *group, *flags, *lattr = NULL;
+ const char *user, *group;
+ char *flags, *lattr = NULL;
char buf[STRBUF_SIZEOF(u_quad_t) + 1];
char ngroup[STRBUF_SIZEOF(uid_t) + 1];
char nuser[STRBUF_SIZEOF(gid_t) + 1];
OpenPOWER on IntegriCloud