diff options
author | rwatson <rwatson@FreeBSD.org> | 2002-12-04 22:01:03 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2002-12-04 22:01:03 +0000 |
commit | bc339ca6acda0076ad5db38b2234fa348494a1e1 (patch) | |
tree | b384c99454a5b1375e664b6ec15dc093b7990169 | |
parent | 5f85c57e764919e1e9fcc00fc984e1a09c77f203 (diff) | |
download | FreeBSD-src-bc339ca6acda0076ad5db38b2234fa348494a1e1.zip FreeBSD-src-bc339ca6acda0076ad5db38b2234fa348494a1e1.tar.gz |
Remove a const that generates a warning: the const isn't strictly
wrong, since we don't want the variable changed, but since we assign
it to variables that may also refer to other non-const strings,
warnings were generated that could break LINT.
Approved by: re
Spotted by: sam
-rw-r--r-- | sys/security/mac_lomac/mac_lomac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/security/mac_lomac/mac_lomac.c b/sys/security/mac_lomac/mac_lomac.c index 70bed37..48d1880 100644 --- a/sys/security/mac_lomac/mac_lomac.c +++ b/sys/security/mac_lomac/mac_lomac.c @@ -493,7 +493,7 @@ maybe_demote(struct mac_lomac *subjlabel, struct mac_lomac *objlabel, const char *actionname, const char *objname, struct vnode *vpq) { struct vattr va; - static const char xxx[] = "<<XXX>>"; + static char xxx[] = "<<XXX>>"; struct mac_lomac_proc *subj = PSLOT(&curthread->td_proc->p_label); char *subjlabeltext, *objlabeltext, *subjtext, *text; struct proc *p; |