Re: big orbit problem.
- From: zucchi zedzone mmc com au (NotZed)
- To: bob cs csoft net
- Cc: hp redhat com (Havoc Pennington), gnome-devel-list gnome org
- Subject: Re: big orbit problem.
- Date: Fri, 12 Nov 1999 08:46:08 +1030 (CST)
Hi,
> 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.
Michael
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]