[ofw] Re: [PATCH] osmtest - Add OSM_CDECL to main() declaration
Sasha Khapyorsky
sashak at voltaire.com
Mon Oct 12 14:43:22 PDT 2009
On 10:10 Mon 12 Oct , Stan C. Smith wrote:
>
>
> Signed-off-by: stan smith <stan.smith at intel.com>
>
> diff --git a/opensm/osmtest/main.c b/opensm/osmtest/main.c
> index 4bb9f82..287baf3 100644
> --- a/opensm/osmtest/main.c
> +++ b/opensm/osmtest/main.c
> @@ -285,7 +285,7 @@ ib_net64_t get_port_guid(IN osmtest_t * p_osmt, uint64_t port_guid)
>
> /**********************************************************************
> **********************************************************************/
> -int main(int argc, char *argv[])
> +int OSM_CDECL main(int argc, char *argv[])
Hmm, why is this needed? AFAIK most of infiniband-diags tools were
ported to windows without adding such special declaration for main()
functions.
Sasha
> {
> static osmtest_t osm_test;
> osmtest_opt_t opt = { 0 };
>
More information about the ofw
mailing list