X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xengineoutput.c;fp=xengineoutput.c;h=11b06950a48a811d75e16c3f29528cd878b78508;hb=38fcbc993ebe30afcfd6a554cad85873fdd0f9c0;hp=3c0921e133d40284c109f2bf27423090debd96c1;hpb=6dc1a307d4ec7c6a793865d8a0bee6e48109435e;p=xboard.git diff --git a/xengineoutput.c b/xengineoutput.c index 3c0921e..11b0695 100644 --- a/xengineoutput.c +++ b/xengineoutput.c @@ -112,7 +112,7 @@ void SetEngineColorIcon( int which ); Position engineOutputX = -1, engineOutputY = -1; Dimension engineOutputW, engineOutputH; -Widget engineOutputShell = NULL; +Widget engineOutputShell; static int engineOutputDialogUp; /* Module variables */ @@ -161,18 +161,17 @@ static void InitializeEngineOutput() void DoSetWindowText(int which, int field, char *s_label) { - Arg args[16]; + Arg arg; - XtSetArg(args[0], XtNlabel, (XtArgVal) s_label); - XtSetValues(outputField[which][field], args, 1); + XtSetArg(arg, XtNlabel, (XtArgVal) s_label); + XtSetValues(outputField[which][field], &arg, 1); } void SetEngineOutputTitle(char *title) { - Arg args[16]; - if(engineOutputShell==NULL) return; - XtSetArg(args[0], XtNtitle, (XtArgVal) title); - XtSetValues(engineOutputShell, args, 1); + Arg arg; + XtSetArg(arg, XtNtitle, (XtArgVal) title); + XtSetValues(engineOutputShell, &arg, 1); } void InsertIntoMemo( int which, char * text, int where )