Make eltt2 c99 compliant

Some implicit headerfiles were missing, if used without -std=gnu99.
Since we do not rely on gnu99 behavior by including the header files,
we can use -std=c99, which we state explicitly in the Makefile now.

Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
This commit is contained in:
Peter Huewe
2018-03-22 22:31:06 +01:00
parent aa19ece77f
commit 771b11f775
2 changed files with 3 additions and 1 deletions

View File

@@ -2,7 +2,7 @@
# Copyright (c) Infineon Technologies AG
CC=gcc
CFLAGS=-Wall -Wextra -g
CFLAGS=-Wall -Wextra -std=c99 -g
all: eltt2

View File

@@ -67,8 +67,10 @@
#include <fcntl.h>
#include <errno.h>
#include <unistd.h>
#include <getopt.h>
#include <ctype.h>
#include <string.h>
#include <strings.h>
//-------------"Defines"-------------
#define TPM_RESP_MAX_SIZE 4096 ///< This is the maximum possible TPM response size in bytes.