From c708eff608d938ff0c818c948b0959be0ab08e97 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sat, 12 Apr 2014 13:28:22 -0600 Subject: [PATCH] Make sure that there is one space after for --- arch/8051/src/up_assert.c | 2 +- arch/8051/src/up_irqtest.c | 2 +- arch/arm/src/arm/up_assert.c | 2 +- arch/arm/src/armv6-m/up_assert.c | 2 +- arch/arm/src/armv7-a/arm_assert.c | 2 +- arch/arm/src/armv7-m/up_assert.c | 2 +- arch/arm/src/common/up_vfork.c | 2 +- arch/arm/src/dm320/dm320_serial.c | 2 +- arch/arm/src/imx/imx_serial.c | 2 +- arch/arm/src/kinetis/kinetis_start.c | 2 +- arch/arm/src/kl/kl_start.c | 2 +- arch/arm/src/lpc17xx/lpc17_start.c | 2 +- arch/arm/src/lpc43xx/lpc43_start.c | 2 +- arch/arm/src/nuc1xx/nuc_start.c | 2 +- arch/arm/src/sam34/sam_start.c | 2 +- arch/arm/src/samd/sam_start.c | 2 +- arch/arm/src/stm32/stm32_start.c | 2 +- arch/arm/src/tiva/tiva_start.c | 2 +- arch/avr/src/common/up_assert.c | 2 +- arch/hc/src/m9s12/m9s12_assert.c | 2 +- arch/mips/src/mips32/up_assert.c | 2 +- arch/mips/src/mips32/up_vfork.c | 2 +- arch/sh/src/common/up_assert.c | 2 +- arch/x86/src/common/up_assert.c | 2 +- arch/x86/src/qemu/qemu_vga.c | 6 +++--- arch/z16/src/common/up_assert.c | 2 +- arch/z80/src/common/up_assert.c | 2 +- arch/z80/src/ez80/ez80_spi.c | 2 +- 28 files changed, 30 insertions(+), 30 deletions(-) diff --git a/arch/8051/src/up_assert.c b/arch/8051/src/up_assert.c index 2b9cf7759f..0be57a7926 100644 --- a/arch/8051/src/up_assert.c +++ b/arch/8051/src/up_assert.c @@ -81,7 +81,7 @@ static void _up_assert(int errorcode) if (g_irqtos || ((FAR struct tcb_s*)g_readytorun.head)->pid == 0) { (void)irqsave(); - for(;;) + for (;;) { #ifdef CONFIG_ARCH_LEDS board_led_on(LED_PANIC); diff --git a/arch/8051/src/up_irqtest.c b/arch/8051/src/up_irqtest.c index ec3ee487dc..21b558c673 100644 --- a/arch/8051/src/up_irqtest.c +++ b/arch/8051/src/up_irqtest.c @@ -207,7 +207,7 @@ void os_start(void) _up_puts("Test complete"); _up_putnl(); - for(;;); + for (;;); } /************************************************************************ diff --git a/arch/arm/src/arm/up_assert.c b/arch/arm/src/arm/up_assert.c index e1fc9ad757..f729d85507 100644 --- a/arch/arm/src/arm/up_assert.c +++ b/arch/arm/src/arm/up_assert.c @@ -301,7 +301,7 @@ static void _up_assert(int errorcode) if (current_regs || ((struct tcb_s*)g_readytorun.head)->pid == 0) { (void)irqsave(); - for(;;) + for (;;) { #ifdef CONFIG_ARCH_LEDS board_led_on(LED_PANIC); diff --git a/arch/arm/src/armv6-m/up_assert.c b/arch/arm/src/armv6-m/up_assert.c index 9dec6306a8..1becf49871 100644 --- a/arch/arm/src/armv6-m/up_assert.c +++ b/arch/arm/src/armv6-m/up_assert.c @@ -317,7 +317,7 @@ static void _up_assert(int errorcode) if (current_regs || ((struct tcb_s*)g_readytorun.head)->pid == 0) { (void)irqsave(); - for(;;) + for (;;) { #ifdef CONFIG_ARCH_LEDS board_led_on(LED_PANIC); diff --git a/arch/arm/src/armv7-a/arm_assert.c b/arch/arm/src/armv7-a/arm_assert.c index bede2df4e3..12a5615a0e 100644 --- a/arch/arm/src/armv7-a/arm_assert.c +++ b/arch/arm/src/armv7-a/arm_assert.c @@ -312,7 +312,7 @@ static void _up_assert(int errorcode) if (current_regs || ((struct tcb_s*)g_readytorun.head)->pid == 0) { (void)irqsave(); - for(;;) + for (;;) { #ifdef CONFIG_ARCH_LEDS board_led_on(LED_PANIC); diff --git a/arch/arm/src/armv7-m/up_assert.c b/arch/arm/src/armv7-m/up_assert.c index 53c9ac20ad..2c538f0177 100644 --- a/arch/arm/src/armv7-m/up_assert.c +++ b/arch/arm/src/armv7-m/up_assert.c @@ -327,7 +327,7 @@ static void _up_assert(int errorcode) if (current_regs || ((struct tcb_s*)g_readytorun.head)->pid == 0) { (void)irqsave(); - for(;;) + for (;;) { #ifdef CONFIG_ARCH_LEDS board_led_on(LED_PANIC); diff --git a/arch/arm/src/common/up_vfork.c b/arch/arm/src/common/up_vfork.c index 03fb09b2f1..4e9f767180 100644 --- a/arch/arm/src/common/up_vfork.c +++ b/arch/arm/src/common/up_vfork.c @@ -185,7 +185,7 @@ pid_t up_vfork(const struct vfork_s *context) /* Make some feeble effort to perserve the stack contents. This is * feeble because the stack surely contains invalid pointers and other * content that will not work in the child context. However, if the - * user follows all of the caveats of vfor() usage, even this feeble + * user follows all of the caveats of vfork() usage, even this feeble * effort is overkill. */ diff --git a/arch/arm/src/dm320/dm320_serial.c b/arch/arm/src/dm320/dm320_serial.c index 5b944b9b7f..abea36d57e 100644 --- a/arch/arm/src/dm320/dm320_serial.c +++ b/arch/arm/src/dm320/dm320_serial.c @@ -493,7 +493,7 @@ static int up_interrupt(int irq, void *context) * until we have been looping for a long time. */ - for(;;) + for (;;) { /* Get the current UART status and check for loop * termination conditions diff --git a/arch/arm/src/imx/imx_serial.c b/arch/arm/src/imx/imx_serial.c index 08f57eeda0..c866a53f9c 100644 --- a/arch/arm/src/imx/imx_serial.c +++ b/arch/arm/src/imx/imx_serial.c @@ -832,7 +832,7 @@ static int up_interrupt(int irq, void *context) * until we have been looping for a long time. */ - for(;;) + for (;;) { /* Get the current UART status and check for loop * termination conditions diff --git a/arch/arm/src/kinetis/kinetis_start.c b/arch/arm/src/kinetis/kinetis_start.c index 6a309ab838..b611709a64 100644 --- a/arch/arm/src/kinetis/kinetis_start.c +++ b/arch/arm/src/kinetis/kinetis_start.c @@ -165,5 +165,5 @@ void __start(void) /* Shouldn't get here */ - for(;;); + for (;;); } diff --git a/arch/arm/src/kl/kl_start.c b/arch/arm/src/kl/kl_start.c index 3daa3ef331..79d1ec1600 100644 --- a/arch/arm/src/kl/kl_start.c +++ b/arch/arm/src/kl/kl_start.c @@ -181,6 +181,6 @@ void __start(void) /* Shoulnd't get here */ - for(;;); + for (;;); } diff --git a/arch/arm/src/lpc17xx/lpc17_start.c b/arch/arm/src/lpc17xx/lpc17_start.c index 256d035abe..7f8756f4c2 100644 --- a/arch/arm/src/lpc17xx/lpc17_start.c +++ b/arch/arm/src/lpc17xx/lpc17_start.c @@ -257,5 +257,5 @@ void __start(void) /* Shouldn't get here */ - for(;;); + for (;;); } diff --git a/arch/arm/src/lpc43xx/lpc43_start.c b/arch/arm/src/lpc43xx/lpc43_start.c index fc96ab14a2..19756c7549 100644 --- a/arch/arm/src/lpc43xx/lpc43_start.c +++ b/arch/arm/src/lpc43xx/lpc43_start.c @@ -357,5 +357,5 @@ void __start(void) /* Shouldn't get here */ - for(;;); + for (;;); } diff --git a/arch/arm/src/nuc1xx/nuc_start.c b/arch/arm/src/nuc1xx/nuc_start.c index 4d5b9c3028..aeb0f4e6e0 100644 --- a/arch/arm/src/nuc1xx/nuc_start.c +++ b/arch/arm/src/nuc1xx/nuc_start.c @@ -174,5 +174,5 @@ void __start(void) /* Shoulnd't get here */ - for(;;); + for (;;); } diff --git a/arch/arm/src/sam34/sam_start.c b/arch/arm/src/sam34/sam_start.c index d0f855585c..3cf653b0f2 100644 --- a/arch/arm/src/sam34/sam_start.c +++ b/arch/arm/src/sam34/sam_start.c @@ -191,5 +191,5 @@ void __start(void) /* Shouldn't get here */ - for(;;); + for (;;); } diff --git a/arch/arm/src/samd/sam_start.c b/arch/arm/src/samd/sam_start.c index 8f749339b6..81aacbe47a 100644 --- a/arch/arm/src/samd/sam_start.c +++ b/arch/arm/src/samd/sam_start.c @@ -175,5 +175,5 @@ void __start(void) /* Shoulnd't get here */ - for(;;); + for (;;); } diff --git a/arch/arm/src/stm32/stm32_start.c b/arch/arm/src/stm32/stm32_start.c index 689fcc2153..20fb2054c6 100644 --- a/arch/arm/src/stm32/stm32_start.c +++ b/arch/arm/src/stm32/stm32_start.c @@ -306,6 +306,6 @@ void __start(void) /* Shoulnd't get here */ - for(;;); + for (;;); #endif } diff --git a/arch/arm/src/tiva/tiva_start.c b/arch/arm/src/tiva/tiva_start.c index 2c0c6999c1..ed63815541 100644 --- a/arch/arm/src/tiva/tiva_start.c +++ b/arch/arm/src/tiva/tiva_start.c @@ -165,5 +165,5 @@ void __start(void) /* Shoulnd't get here */ - for(;;); + for (;;); } diff --git a/arch/avr/src/common/up_assert.c b/arch/avr/src/common/up_assert.c index c66ce0fcab..7aac46c2a3 100644 --- a/arch/avr/src/common/up_assert.c +++ b/arch/avr/src/common/up_assert.c @@ -105,7 +105,7 @@ static void _up_assert(int errorcode) if (current_regs || ((struct tcb_s*)g_readytorun.head)->pid == 0) { (void)irqsave(); - for(;;) + for (;;) { #ifdef CONFIG_ARCH_LEDS board_led_on(LED_PANIC); diff --git a/arch/hc/src/m9s12/m9s12_assert.c b/arch/hc/src/m9s12/m9s12_assert.c index e62bdd5f65..b977f88220 100644 --- a/arch/hc/src/m9s12/m9s12_assert.c +++ b/arch/hc/src/m9s12/m9s12_assert.c @@ -280,7 +280,7 @@ static void _up_assert(int errorcode) if (current_regs || ((struct tcb_s*)g_readytorun.head)->pid == 0) { (void)irqsave(); - for(;;) + for (;;) { #ifdef CONFIG_ARCH_LEDS board_led_on(LED_PANIC); diff --git a/arch/mips/src/mips32/up_assert.c b/arch/mips/src/mips32/up_assert.c index 7673936671..da789ad819 100644 --- a/arch/mips/src/mips32/up_assert.c +++ b/arch/mips/src/mips32/up_assert.c @@ -105,7 +105,7 @@ static void _up_assert(int errorcode) if (current_regs || ((struct tcb_s*)g_readytorun.head)->pid == 0) { (void)irqsave(); - for(;;) + for (;;) { #ifdef CONFIG_ARCH_LEDS board_led_on(LED_PANIC); diff --git a/arch/mips/src/mips32/up_vfork.c b/arch/mips/src/mips32/up_vfork.c index 15fd328129..82b097a263 100644 --- a/arch/mips/src/mips32/up_vfork.c +++ b/arch/mips/src/mips32/up_vfork.c @@ -190,7 +190,7 @@ pid_t up_vfork(const struct vfork_s *context) /* Make some feeble effort to perserve the stack contents. This is * feeble because the stack surely contains invalid pointers and other * content that will not work in the child context. However, if the - * user follows all of the caveats of vfor() usage, even this feeble + * user follows all of the caveats of vfork() usage, even this feeble * effort is overkill. */ diff --git a/arch/sh/src/common/up_assert.c b/arch/sh/src/common/up_assert.c index 12f177e8fe..1c4016665f 100644 --- a/arch/sh/src/common/up_assert.c +++ b/arch/sh/src/common/up_assert.c @@ -92,7 +92,7 @@ static void _up_assert(int errorcode) if (current_regs || ((struct tcb_s*)g_readytorun.head)->pid == 0) { (void)irqsave(); - for(;;) + for (;;) { #ifdef CONFIG_ARCH_LEDS board_led_on(LED_PANIC); diff --git a/arch/x86/src/common/up_assert.c b/arch/x86/src/common/up_assert.c index b67db487b7..8f4f53b9a3 100644 --- a/arch/x86/src/common/up_assert.c +++ b/arch/x86/src/common/up_assert.c @@ -242,7 +242,7 @@ static void _up_assert(int errorcode) if (current_regs || ((struct tcb_s*)g_readytorun.head)->pid == 0) { (void)irqsave(); - for(;;) + for (;;) { #ifdef CONFIG_ARCH_LEDS board_led_on(LED_PANIC); diff --git a/arch/x86/src/qemu/qemu_vga.c b/arch/x86/src/qemu/qemu_vga.c index fe34382fb7..78cec8121c 100644 --- a/arch/x86/src/qemu/qemu_vga.c +++ b/arch/x86/src/qemu/qemu_vga.c @@ -294,12 +294,12 @@ static int init_graph_vga(int width, int height,int chain4) outb(val, 0x3c2); outw(0x0e11, 0x3d4); /* enable regs 0-7 */ - for(a = 0; a < SZ(g_hor_regs); ++a) + for (a = 0; a < SZ(g_hor_regs); ++a) { outw((uint16_t)((w[a] << 8) + g_hor_regs[a]), 0x3d4); } - for(a = 0; a < SZ(g_ver_regs); ++a) + for (a = 0; a < SZ(g_ver_regs); ++a) { outw((uint16_t)((h[a] << 8) + g_ver_regs[a]), 0x3d4); } @@ -330,7 +330,7 @@ static int init_graph_vga(int width, int height,int chain4) outb(0x33, 0x3c0); outb(0x00, 0x3c0); - for(a = 0; a < 16; a++) /* ega pal */ + for (a = 0; a < 16; a++) /* ega pal */ { outb((uint8_t)a, 0x3c0); outb((uint8_t)a, 0x3c0); diff --git a/arch/z16/src/common/up_assert.c b/arch/z16/src/common/up_assert.c index bc63f9b6c9..d2b64026e5 100644 --- a/arch/z16/src/common/up_assert.c +++ b/arch/z16/src/common/up_assert.c @@ -91,7 +91,7 @@ static void _up_assert(int errorcode) /* noreturn_function */ if (up_interrupt_context() || ((FAR struct tcb_s*)g_readytorun.head)->pid == 0) { (void)irqsave(); - for(;;) + for (;;) { #ifdef CONFIG_ARCH_LEDS board_led_on(LED_PANIC); diff --git a/arch/z80/src/common/up_assert.c b/arch/z80/src/common/up_assert.c index 40907991bd..9bdd5cdf50 100644 --- a/arch/z80/src/common/up_assert.c +++ b/arch/z80/src/common/up_assert.c @@ -90,7 +90,7 @@ static void _up_assert(int errorcode) /* noreturn_function */ if (up_interrupt_context() || ((FAR struct tcb_s*)g_readytorun.head)->pid == 0) { (void)irqsave(); - for(;;) + for (;;) { #ifdef CONFIG_ARCH_LEDS board_led_on(LED_PANIC); diff --git a/arch/z80/src/ez80/ez80_spi.c b/arch/z80/src/ez80/ez80_spi.c index 475c946a58..260bdc777c 100644 --- a/arch/z80/src/ez80/ez80_spi.c +++ b/arch/z80/src/ez80/ez80_spi.c @@ -300,7 +300,7 @@ static uint8_t spi_transfer(uint8_t ch) /* Send the byte, repeating if some error occurs */ - for(;;) + for (;;) { outp(EZ80_SPI_TSR, ch);