summaryrefslogtreecommitdiffstats
path: root/tboot/vsprintf.c
diff options
context:
space:
mode:
authorroot <root@lamia.panaceas.james.local>2017-03-15 13:50:51 +0000
committerroot <root@lamia.panaceas.james.local>2017-03-15 13:50:51 +0000
commit2dd7ea9b7a34fd02c10b67bccebfb3c04b7ab3bf (patch)
treef145c6f6ad2dd52e271f1b84a4cfb8b8f0c6ce07 /tboot/vsprintf.c
parentf327ade1d0333deee519b2c2977f8edae5b9fa3d (diff)
downloadtboot-2dd7ea9b7a34fd02c10b67bccebfb3c04b7ab3bf.tar.gz
tboot-2dd7ea9b7a34fd02c10b67bccebfb3c04b7ab3bf.tar.bz2
tboot-2dd7ea9b7a34fd02c10b67bccebfb3c04b7ab3bf.zip
patch up C99isms and a missing defineHEADmaster
Diffstat (limited to 'tboot/vsprintf.c')
-rw-r--r--tboot/vsprintf.c3
1 files changed, 2 insertions, 1 deletions
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;