Linux-Integrity Archive on
 help / color / Atom feed
From: Mimi Zohar <>
To: Petr Vorel <>,
Cc: Mimi Zohar <>
Subject: Re: [PATCH ima-evm-utils v2] pcr_tss: Fix compilation for old compilers
Date: Wed, 22 Jul 2020 07:08:25 -0400
Message-ID: <> (raw)
In-Reply-To: <>

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 <>



      reply index

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-22 10:52 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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Linux-Integrity Archive on

Archives are clonable:
	git clone --mirror linux-integrity/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-integrity linux-integrity/ \
	public-inbox-index linux-integrity

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone