Re: big orbit problem.


>   blade_env *blade=(blade_env*)malloc(sizeof(blade_env));
>   blade->ev=(CORBA_Environment*)malloc(sizeof(CORBA_Environment));

These casts are redundant if you include the right headers.
(it'll make the code more readable without it).

>   CORBA_exception_init(blade->ev);
>   blade->orb = CORBA_ORB_init(argc, argv, "orbit-local-orb", blade->ev);

It should be &argc to this function at least, assuming argc is an int.

gcc -Wall would pick this up.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]