diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2021-11-28 10:38:43 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2021-11-30 17:52:59 +0000 |
commit | 4bf092e35a92b4fb613f4fee01d5ab26a612ddb6 (patch) | |
tree | 093d2ef94b6f58d58de8191784aca276540526dc /choose.c | |
parent | c7a7f81b18f8594aceaa9c32217753ef935dac2d (diff) |
Use _CONST_X_STRING to make libXt declare String as const char *
Clears 5 -Wincompatible-pointer-types warnings
and 18 -Wdiscarded-qualifiers warnings from gcc
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'choose.c')
-rw-r--r-- | choose.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -461,7 +461,7 @@ ChooseSessionDeleteXtProc(Widget w, XtPointer client_data, XtPointer callData) { XawListReturnStruct *current; int longest; - char *name; + String name; CheckBreakLockCancel (); @@ -555,7 +555,7 @@ ChooseSessionBreakLockXtProc(Widget w, XtPointer client_data, XtPointer callData) { XawListReturnStruct *current; - char *name; + String name; CheckDeleteCancel (); |