diff --git a/include/X11/XKBlib.h b/include/X11/XKBlib.h index dd532b22..27c63f70 100644 --- a/include/X11/XKBlib.h +++ b/include/X11/XKBlib.h @@ -297,7 +297,7 @@ extern Bool XkbIgnoreExtension( ); extern Display *XkbOpenDisplay( - char * /* name */, + _Xconst char * /* name */, int * /* ev_rtrn */, int * /* err_rtrn */, int * /* major_rtrn */, diff --git a/man/xkb/XkbOpenDisplay.man b/man/xkb/XkbOpenDisplay.man index 302984a3..41b20c0c 100644 --- a/man/xkb/XkbOpenDisplay.man +++ b/man/xkb/XkbOpenDisplay.man @@ -26,7 +26,7 @@ the library and the server, and initializes the extension for use. .SH SYNOPSIS .HP .B Display *XkbOpenDisplay -.BI "(\^char *" "display_name" "\^," +.BI "(\^_Xconst char *" "display_name" "\^," .BI "int *" "event_rtrn" "\^," .BI "int *" "error_rtrn" "\^," .BI "int *" "major_in_out" "\^," diff --git a/src/xkb/XKB.c b/src/xkb/XKB.c index 055eb367..4df82b24 100644 --- a/src/xkb/XKB.c +++ b/src/xkb/XKB.c @@ -721,7 +721,7 @@ XkbGetPerClientControls(Display *dpy, unsigned *ctrls) } Display * -XkbOpenDisplay(char *name, +XkbOpenDisplay(_Xconst char *name, int *ev_rtrn, int *err_rtrn, int *major_rtrn,