Looks ok to me. Did you #include clib/alib_protos.h and clib/exec_protos.h ? If so, look into the prototypes and do type casting for mismatching types. I guess that OpenDevice() takes an IORequest rather than an IOStdReq. Also post the error messages. I guess there are only warnings.
Bye,
Thomas