From: Dmitry Voytik <voytikd@gmail.com>
To: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Cc: Balavasu <kp.balavasu@gmail.com>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] staging: lustre: lnet: lnet: do not initialise 0
Date: Fri, 24 Oct 2014 22:57:19 +0400 [thread overview]
Message-ID: <20141024185719.GA10175@ubuntuvm> (raw)
In-Reply-To: <54429DAB.4060906@cogentembedded.com>
On Sat, Oct 18, 2014 at 09:04:43PM +0400, Sergei Shtylyov wrote:
> Hello.
>
> On 10/18/2014 8:03 AM, Balavasu wrote:
>
> >-static int check_routers_before_use = 0;
> >+static int check_routers_before_use = {0};
>
> Eh? I thought {} is only for arrays/structures...
It seems like this is from C++. In C++11 you can even drop '=' like
this:
int i {0};
;)
WBR,
voyt
next prev parent reply other threads:[~2014-10-24 18:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-18 4:03 [PATCH 1/2] staging: lustre: lnet: lnet: do not initialise 0 Balavasu
2014-10-18 17:04 ` Sergei Shtylyov
2014-10-24 18:57 ` Dmitry Voytik [this message]
-- strict thread matches above, loose matches on Subject: below --
2014-10-24 12:15 Balavasu
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=20141024185719.GA10175@ubuntuvm \
--to=voytikd@gmail.com \
--cc=kp.balavasu@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=sergei.shtylyov@cogentembedded.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;
as well as URLs for NNTP newsgroup(s).