--- xengine-j/xengine.c.ORIG Sat Jul 10 05:08:34 1999 +++ xengine-j/xengine.c Sat Jul 10 16:55:34 1999 @@ -47,7 +47,7 @@ Arg args[10]; XtTranslations newTranslations; static XtActionsRec redrawActions[] = { - {"expose", (XtCallbackProc) redraw_callback}, + {"expose", (XtActionProc) redraw_callback}, }; static char *overrideTranslations = @@ -165,7 +165,7 @@ enginePixmap = XCreatePixmap(XtDisplay(engine), XtWindow(engine), width, height, DefaultDepthOfScreen(XtScreen(engine))); /* Interval timer start */ - XtAddTimeOut(1, Cycle, NULL); + XtAddTimeOut(1, (XtTimerCallbackProc)Cycle, NULL); XtMainLoop(); } @@ -179,10 +179,9 @@ { Arg args[10]; - - XtSetArg(args[0], XtNwidth, &width); - XtSetArg(args[1], XtNheight, &height); - XtGetValues(w, args, 2); + XtSetArg(args[0], XtNwidth, (XtArgVal)width); + XtSetArg(args[1], XtNheight, (XtArgVal)height); + XtSetValues(w, args, 2); XFreePixmap(XtDisplay(engine), enginePixmap); enginePixmap = XCreatePixmap(XtDisplay(engine), XtWindow(engine), width, height, DefaultDepthOfScreen(XtScreen(engine))); @@ -217,7 +216,7 @@ mean = 0.0; } mean += DrawEngine(); - XtAddTimeOut(1, Cycle, NULL); + XtAddTimeOut(1, (XtTimerCallbackProc)Cycle, NULL); } double