mirror of
https://gitlab.freedesktop.org/xorg/lib/libx11.git
synced 2026-05-05 02:58:03 +02:00
Constified more tables.
This commit is contained in:
parent
e699c4231c
commit
6c508eab5d
2 changed files with 7 additions and 4 deletions
|
|
@ -33,7 +33,7 @@ in this Software without prior written authorization from The Open Group.
|
|||
#include <X11/Xatom.h>
|
||||
|
||||
/* insulate predefined atom numbers from cut routines */
|
||||
static Atom n_to_atom[8] = {
|
||||
static const Atom n_to_atom[8] = {
|
||||
XA_CUT_BUFFER0,
|
||||
XA_CUT_BUFFER1,
|
||||
XA_CUT_BUFFER2,
|
||||
|
|
@ -48,6 +48,9 @@ XRotateBuffers (
|
|||
register Display *dpy,
|
||||
int rotate)
|
||||
{
|
||||
/* XRotateWindowProperties wants a non-const Atom*, but it doesn't
|
||||
* modify it, so this is safe.
|
||||
*/
|
||||
return XRotateWindowProperties(dpy, RootWindow(dpy, 0), n_to_atom, 8, rotate);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -67,11 +67,11 @@ typedef int (*ucstocsConvProc)(
|
|||
);
|
||||
|
||||
struct SubstRec {
|
||||
const char* encoding_name;
|
||||
const char* charset_name;
|
||||
const char encoding_name[8];
|
||||
const char charset_name[12];
|
||||
};
|
||||
|
||||
static struct SubstRec SubstTable[] = {
|
||||
static const struct SubstRec SubstTable[] = {
|
||||
{"STRING", "ISO8859-1"},
|
||||
{"TIS620", "TIS620-0"},
|
||||
{"UTF-8", "ISO10646-1"}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue