C (106/274)

From:Gunther Nikl
Date:14 Sep 2000 at 10:12:15
Subject:Re: Input Handlers using StormC and MUI

On Wed, Sep 13, 2000 at 08:15:06PM +0000, Allen Kong wrote:
> Result = OpenDevice(TIMERNAME,UNIT_VBLANK,(struct IORequest *)Data->request,0);
^^^^^^^^^^^^^^^^^^^^
You should get rid of casting when ever possible since its a potential
error source. You should write it the following way:

Result = OpenDevice(TIMERNAME,UNIT_VBLANK,&Data->request->tr_Node,0)

As you can see its less to type ;-)

Gunther