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.
This commit is contained in:
Juli Mallett 2002-05-15 09:49:59 +00:00
parent ff5e253326
commit 0928a7f16f

View File

@ -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];