From 1fc20e90c0c484842b2e06462509eb95106ccdf0 Mon Sep 17 00:00:00 2001 From: David Given Date: Sat, 23 Jun 2018 23:56:34 +0200 Subject: [PATCH] Remove c99-isms. --- plat/pc86/emu/main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plat/pc86/emu/main.c b/plat/pc86/emu/main.c index 1558884a8..f5131229b 100644 --- a/plat/pc86/emu/main.c +++ b/plat/pc86/emu/main.c @@ -96,6 +96,8 @@ static void int13_cb(int num) int main(int argc, const char* argv[]) { + int i; + if (argc != 2) { printk("syntax: pc86emu \n"); @@ -116,7 +118,7 @@ int main(int argc, const char* argv[]) /* Load the boot sector at 0x07c0:0000. */ - for (int i=0; i<512; i++) + for (i=0; i<512; i++) { uint8_t b; read(floppy_fd, &b, 1); @@ -125,7 +127,7 @@ int main(int argc, const char* argv[]) /* Initialise. */ - for (int i=0; i<256; i++) + for (i=0; i<256; i++) intr_funcs[i] = unknown_interrupt_cb; intr_funcs[0x10] = int10_cb; intr_funcs[0x13] = int13_cb;