[Openais] [PATCH] very minor amf lib return value fix
Steven Dake
sdake at redhat.com
Fri Apr 20 17:00:47 PDT 2007
Angus,
Thanks this has been merged into trunk.
Regards
-steve
On Wed, 2007-04-18 at 17:08 +1200, angus salkeld wrote:
> Hi
>
> Here is a one liner to an annoying little problem.
>
> The "error" (usually passed in as OK) was returned instead of the actual failure status (errorResult).
>
>
> --- /home/anguss/projects/external/ais_clean/lib/amf.c 2007-04-11 11:35:54.000000000 +1200
> +++ lib/amf.c 2007-04-18 16:59:43.000000000 +1200
> @@ -1033,7 +1041,7 @@
> errorResult = saHandleInstanceGet (&amfHandleDatabase, amfHandle,
> (void *)&amfInstance);
> if (errorResult != SA_AIS_OK) {
> - return (error);
> + return (errorResult);
> }
>
> req_lib_amf_response.header.id = MESSAGE_REQ_AMF_RESPONSE;
>
>
>
>
> Regards
> Angus Salkeld
>
> Allied Telesis Labs Limited
>
>
>
> _______________________________________________
> Openais mailing list
> Openais at lists.linux-foundation.org
> https://lists.linux-foundation.org/mailman/listinfo/openais
More information about the Openais
mailing list