XkbOpenDisplay: Add _Xconst qualifier to display name argument

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
This commit is contained in:
Alan Coopersmith 2022-04-16 13:04:23 -07:00
parent c88ceaad4a
commit 35d1513bc7
3 changed files with 3 additions and 3 deletions

View file

@ -297,7 +297,7 @@ extern Bool XkbIgnoreExtension(
);
extern Display *XkbOpenDisplay(
char * /* name */,
_Xconst char * /* name */,
int * /* ev_rtrn */,
int * /* err_rtrn */,
int * /* major_rtrn */,

View file

@ -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" "\^,"

View file

@ -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,