diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2010-11-21 20:49:05 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2010-11-24 15:23:27 -0800 |
commit | c8701115462b482d99ecff24d9de0f2806084ba5 (patch) | |
tree | 98546b52a3c26dc6d40eb4d1cd11bb60e1510f08 /specs | |
parent | 24db5b5ff0d51b0ed9d9701a792c5f14f23b638d (diff) |
Mark atom names argument to XInternAtoms as const
Updates code & docs for XInternAtoms.
The single atom name argument to XInternAtom was already const char *
in the code, but not the docs, so updated it in the docs too.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'specs')
-rw-r--r-- | specs/libX11/CH04.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/specs/libX11/CH04.xml b/specs/libX11/CH04.xml index 8a3e8c5..e2bca72 100644 --- a/specs/libX11/CH04.xml +++ b/specs/libX11/CH04.xml @@ -1054,7 +1054,7 @@ To return an atom for a given name, use <funcprototype> <funcdef>Atom <function>XInternAtom</function></funcdef> <paramdef>Display<parameter> *display</parameter></paramdef> - <paramdef>char<parameter> *atom_name</parameter></paramdef> + <paramdef>const char<parameter> *atom_name</parameter></paramdef> <paramdef>Bool<parameter> only_if_exists</parameter></paramdef> </funcprototype> </funcsynopsis> @@ -1136,7 +1136,7 @@ To return atoms for an array of names, use <funcprototype> <funcdef>Status <function>XInternAtoms</function></funcdef> <paramdef>Display<parameter> *display</parameter></paramdef> - <paramdef>char<parameter> **names</parameter></paramdef> + <paramdef>const char<parameter> **names</parameter></paramdef> <paramdef>int<parameter> count</parameter></paramdef> <paramdef>Bool<parameter> only_if_exists</parameter></paramdef> <paramdef>Atom<parameter> *atoms_return</parameter></paramdef> |