[GRASS5] CRAY T3E compile errors

Justin Hickey jhickey at hpcc.nectec.or.th
Mon Sep 25 23:14:00 EDT 2000


Hi Markus

Markus Neteler wrote:
>   Argument of type "float *" is incompatible with parameter of type
> "caddr_t".
> 
>     xdrmem_create (&xdrEncodeStream, xdrf, 4, XDR_ENCODE);
>                                      ^
> 
>   Argument of type "double *" is incompatible with parameter of type
> "caddr_t".
> 
>     xdrmem_create (&xdrEncodeStream, xdrd, 8, XDR_ENCODE);

It should be safe to cast the xdrf and xdrd variables to caddr_t. The
man page for the xdrmem_create function indicates that it is basically a
memory allocation function. Thus the xdrf and xdrd pointers point to the
new memory. Therefore, the cast should not only be safe but required in
my mind.

Talk to you later.

-- 
Sincerely,

Jazzman (a.k.a. Justin Hickey)  e-mail: jhickey at hpcc.nectec.or.th
High Performance Computing Center
National Electronics and Computer Technology Center (NECTEC)
Bangkok, Thailand
==================================================================
People who think they know everything are very irritating to those
of us who do.  ---Anonymous

Jazz and Trek Rule!!!
==================================================================

---------------------------------------- 
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo at geog.uni-hannover.de with
subject 'unsubscribe grass5'



More information about the grass-dev mailing list