From: Mimi Zohar <zohar@linux.ibm.com>
To: Petr Vorel <pvorel@suse.cz>, linux-integrity@vger.kernel.org
Cc: Mimi Zohar <zohar@linux.vnet.ibm.com>
Subject: Re: [PATCH ima-evm-utils v2] pcr_tss: Fix compilation for old compilers
Date: Wed, 22 Jul 2020 07:08:25 -0400 [thread overview]
Message-ID: <1595416105.5311.33.camel@linux.ibm.com> (raw)
In-Reply-To: <20200722105202.32507-1-pvorel@suse.cz>
On Wed, 2020-07-22 at 12:52 +0200, Petr Vorel wrote:
> pcr_tss.c: In function 'pcr_selections_match':
> pcr_tss.c:73:2: error: 'for' loop initial declarations are only allowed in C99 mode
> for (int i = 0; i < a->count; i++) {
> ^
> pcr_tss.c:73:2: note: use option -std=c99 or -std=gnu99 to compile your code
> pcr_tss.c:78:3: error: 'for' loop initial declarations are only allowed in C99 mode
> for (int j = 0; j < a->pcrSelections[i].sizeofSelect; j++) {
> ^
>
> Fixes: 03f99ea ("ima-evm-utils: Add support for Intel TSS2 for PCR
> reading")
>
> Signed-off-by: Petr Vorel <pvorel@suse.cz>
thanks,
Mimi
prev parent reply other threads:[~2020-07-22 11:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-22 10:52 [PATCH ima-evm-utils v2] pcr_tss: Fix compilation for old compilers Petr Vorel
2020-07-22 11:08 ` Mimi Zohar [this message]
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=1595416105.5311.33.camel@linux.ibm.com \
--to=zohar@linux.ibm.com \
--cc=linux-integrity@vger.kernel.org \
--cc=pvorel@suse.cz \
--cc=zohar@linux.vnet.ibm.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).