summaryrefslogtreecommitdiffstats
path: root/share/man/man5/stab.5
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2010-06-10 14:19:51 +0000
committerbz <bz@FreeBSD.org>2010-06-10 14:19:51 +0000
commitfb808063cd6ca3766528a3fd83fb51fb7070200d (patch)
tree60ded25b046446fba7a26b20b51ebb5ab4ad8ee6 /share/man/man5/stab.5
parent5e643891b23b4b4ccc04283256c9c16f616caf02 (diff)
downloadFreeBSD-src-fb808063cd6ca3766528a3fd83fb51fb7070200d.zip
FreeBSD-src-fb808063cd6ca3766528a3fd83fb51fb7070200d.tar.gz
Make the char *n_name member of struct nlist 'const'.
This avoids errors or __DECONST() from places with higher WARNS levels. Adjust a local cache variable in ipcs to const as well to compile in the new world order. Suggested by: jhb Reviewed by: jhb, kib, brueffer (man)
Diffstat (limited to 'share/man/man5/stab.5')
-rw-r--r--share/man/man5/stab.54
1 files changed, 2 insertions, 2 deletions
diff --git a/share/man/man5/stab.5 b/share/man/man5/stab.5
index bbbd292..bc4e680 100644
--- a/share/man/man5/stab.5
+++ b/share/man/man5/stab.5
@@ -32,7 +32,7 @@
.\" @(#)stab.5 8.1 (Berkeley) 6/5/93
.\" $FreeBSD$
.\"
-.Dd June 5, 1993
+.Dd June 10, 2010
.Dt STAB 5
.Os
.Sh NAME
@@ -79,7 +79,7 @@ consists of the following structure:
struct nlist {
union {
- char *n_name; /* for use when in-core */
+ const char *n_name; /* for use when in-core */
long n_strx; /* index into file string table */
} n_un;
unsigned char n_type; /* type flag */
OpenPOWER on IntegriCloud