dtcudcfonted: Resolve compiler and coverity warnings

This commit is contained in:
Peter Howkins
2018-03-28 01:29:28 +01:00
parent 49d1ca38e4
commit 55c59be795
16 changed files with 127 additions and 115 deletions

View File

@@ -460,10 +460,10 @@ Widget owner;
AddLeftAttachWidget( wgeStaT_disp[i], wgeStaT_list[i], 0 ) ;
XtAddEventHandler( wgeStaT_list[i],
ButtonPressMask|ButtonReleaseMask,
False, EHeStaT_list, (XtPointer)i );
False, EHeStaT_list, (XtPointer) (intptr_t) i );
XtAddEventHandler( wgeStaT_disp[i],
ButtonPressMask|ButtonReleaseMask,
False, EHeStaT_list, (XtPointer)i );
False, EHeStaT_list, (XtPointer) (intptr_t) i );
if (i==0){
XtVaGetValues(wgeStaT_disp[i],
@@ -579,7 +579,7 @@ int code;
char str[8];
if (! code){
str[0] = NULL;
str[0] = '\0';
}
else{
sprintf( str, "%4x:", code );