From: Sasha Khapyorsky <sashak@voltaire.com>
To: "Stan C. Smith" <stan.smith@intel.com>
Cc: ofw@lists.openfabrics.org, 'linux-rdma' <linux-rdma@vger.kernel.org>
Subject: Re: [PATCH] osmtest - Add OSM_CDECL to main() declaration
Date: Mon, 12 Oct 2009 23:43:22 +0200 [thread overview]
Message-ID: <20091012214322.GI13830@me> (raw)
In-Reply-To: <41F5872023464A3C8FD5828F037B4D77@amr.corp.intel.com>
On 10:10 Mon 12 Oct , Stan C. Smith wrote:
>
>
> Signed-off-by: stan smith <stan.smith@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 };
>
next prev parent reply other threads:[~2009-10-12 21:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-12 17:10 [PATCH] osmtest - Add OSM_CDECL to main() declaration Stan C. Smith
2009-10-12 21:43 ` Sasha Khapyorsky [this message]
2009-10-12 21:58 ` Smith, Stan
2009-10-12 22:18 ` Sasha Khapyorsky
2009-10-12 22:28 ` Smith, Stan
2009-10-15 4:57 ` Sean Hefty
2009-10-15 19:41 ` Smith, Stan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20091012214322.GI13830@me \
--to=sashak@voltaire.com \
--cc=linux-rdma@vger.kernel.org \
--cc=ofw@lists.openfabrics.org \
--cc=stan.smith@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox