From 2dd7ea9b7a34fd02c10b67bccebfb3c04b7ab3bf Mon Sep 17 00:00:00 2001 From: root Date: Wed, 15 Mar 2017 13:50:51 +0000 Subject: patch up C99isms and a missing define --- tboot/vsprintf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tboot/vsprintf.c') diff --git a/tboot/vsprintf.c b/tboot/vsprintf.c index a100cc0..cc7d488 100644 --- a/tboot/vsprintf.c +++ b/tboot/vsprintf.c @@ -93,7 +93,8 @@ static unsigned long write_pads_to_buffer(char *buf, size_t buf_len, unsigned long buf_pos, char pad, size_t pad_len) { - for ( unsigned int i = 0; i < pad_len; i++ ) + unsigned int i; + for ( i = 0; i < pad_len; i++ ) buf_pos = write_char_to_buffer(buf, buf_len, buf_pos, pad); return buf_pos; -- cgit v1.2.3