Make sure that there is one space after for

This commit is contained in:
Gregory Nutt
2014-04-12 13:28:22 -06:00
parent 056aed1274
commit 494387b33b
42 changed files with 175 additions and 203 deletions
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -207,7 +207,7 @@ void os_start(void)
_up_puts("Test complete");
_up_putnl();
for(;;);
for (;;);
}
/************************************************************************
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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.
*/
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
+1 -1
View File
@@ -165,5 +165,5 @@ void __start(void)
/* Shouldn't get here */
for(;;);
for (;;);
}
+1 -1
View File
@@ -181,6 +181,6 @@ void __start(void)
/* Shoulnd't get here */
for(;;);
for (;;);
}
+1 -1
View File
@@ -257,5 +257,5 @@ void __start(void)
/* Shouldn't get here */
for(;;);
for (;;);
}
+1 -1
View File
@@ -357,5 +357,5 @@ void __start(void)
/* Shouldn't get here */
for(;;);
for (;;);
}
+1 -1
View File
@@ -174,5 +174,5 @@ void __start(void)
/* Shoulnd't get here */
for(;;);
for (;;);
}
+1 -1
View File
@@ -191,5 +191,5 @@ void __start(void)
/* Shouldn't get here */
for(;;);
for (;;);
}
+1 -1
View File
@@ -175,5 +175,5 @@ void __start(void)
/* Shoulnd't get here */
for(;;);
for (;;);
}
+1 -1
View File
@@ -306,6 +306,6 @@ void __start(void)
/* Shoulnd't get here */
for(;;);
for (;;);
#endif
}
+1 -1
View File
@@ -165,5 +165,5 @@ void __start(void)
/* Shoulnd't get here */
for(;;);
for (;;);
}
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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.
*/
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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);
+3 -3
View File
@@ -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);
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -195,7 +195,7 @@ void open1788_sdram_initialize(void)
/* Wait 128 AHB clock cycles */
for(i = 0; i < 128; i++);
for (i = 0; i < 128; i++);
/* 64ms/8192 = 7.8125us, nx16x8.33ns < 7.8125us, n < 58.6*/
+1 -1
View File
@@ -665,7 +665,7 @@ int main(int argc, char **argv, char **envp)
/* Loopo until control-C */
for(;;)
for (;;)
{
/* Read characters from the console, and echo them to the target tty */
+1 -1
View File
@@ -104,5 +104,5 @@ void board_power_off(void)
// trigger shutdown with pull-up resistor (not push-pull!) and wait.
stm32_gpiowrite(GPIO_PCLR, true);
for(;;);
for (;;);
}
+126 -154
View File
File diff suppressed because it is too large Load Diff
+2 -2
View File
@@ -653,7 +653,7 @@ static inline void rit_clear(FAR struct rit_dev_s *priv)
/* Display each row */
for(row = 0; row < RIT_YRES; row++)
for (row = 0; row < RIT_YRES; row++)
{
/* Display a horizontal run */
@@ -680,7 +680,7 @@ static inline void rit_clear(FAR struct rit_dev_s *priv)
/* Display each row */
for(row = 0; row < RIT_YRES; row++)
for (row = 0; row < RIT_YRES; row++)
{
/* Display a horizontal run */
+1 -1
View File
@@ -286,7 +286,7 @@ static inline int nxffs_startpos(FAR struct nxffs_volume_s *volume,
* compacting.
*/
for(;;)
for (;;)
{
/* Is there wasted space between the offset where the we could have
* valid data and the offset to the beginning of the first valid
+2 -2
View File
@@ -133,7 +133,7 @@ int inet_pton(int af, FAR const char *src, FAR void *dst)
numoffset = 0;
ndots = 0;
for(;;)
for (;;)
{
ch = (uint8_t)src[srcoffset++];
@@ -231,7 +231,7 @@ int inet_pton(int af, FAR const char *src, FAR void *dst)
nrsep = 0;
rtime = false;
for(;;)
for (;;)
{
ch = (uint8_t)src[srcoffset++];
+1 -1
View File
@@ -66,7 +66,7 @@ void sq_rem(FAR sq_entry_t *node, sq_queue_t *queue)
else
{
FAR sq_entry_t *prev;
for(prev = (FAR sq_entry_t*)queue->head;
for (prev = (FAR sq_entry_t*)queue->head;
prev && prev->flink != node;
prev = prev->flink);
+1 -1
View File
@@ -65,7 +65,7 @@ FAR sq_entry_t *sq_remlast(sq_queue_t *queue)
else
{
FAR sq_entry_t *prev;
for(prev = queue->head;
for (prev = queue->head;
prev && prev->flink != ret;
prev = prev->flink);
+1 -1
View File
@@ -177,7 +177,7 @@ FAR char *lib_fgets(FAR char *buf, size_t buflen, FILE *stream,
* the next character and one for the null terminator.
*/
for(;;)
for (;;)
{
/* Get the next character */
+3 -3
View File
@@ -58,7 +58,7 @@ void uip_neighbor_init(void)
{
int i;
for(i = 0; i < ENTRIES; ++i)
for (i = 0; i < ENTRIES; ++i)
{
entries[i].time = MAX_TIME;
}
@@ -68,7 +68,7 @@ void uip_neighbor_periodic(void)
{
int i;
for(i = 0; i < ENTRIES; ++i)
for (i = 0; i < ENTRIES; ++i)
{
if (entries[i].time < MAX_TIME)
{
@@ -125,7 +125,7 @@ static struct neighbor_entry *find_entry(uip_ipaddr_t ipaddr)
{
int i;
for(i = 0; i < ENTRIES; ++i)
for (i = 0; i < ENTRIES; ++i)
{
if (uip_ipaddr_cmp(entries[i].ipaddr, ipaddr))
{
+3 -3
View File
@@ -220,9 +220,9 @@ static FAR sigpendq_t *sig_findpendingsignal(FAR struct task_group_s *group,
/* Seach the list for a sigpendion on this signal */
for(sigpend = (FAR sigpendq_t*)group->sigpendingq.head;
(sigpend && sigpend->info.si_signo != signo);
sigpend = sigpend->flink);
for (sigpend = (FAR sigpendq_t*)group->sigpendingq.head;
(sigpend && sigpend->info.si_signo != signo);
sigpend = sigpend->flink);
irqrestore(saved_state);
return sigpend;
+1 -1
View File
@@ -89,7 +89,7 @@ FAR sigactq_t *sig_findaction(FAR struct tcb_s *stcb, int signo)
/* Seach the list for a sigaction on this signal */
for(sigact = (FAR sigactq_t*)stcb->sigactionq.head;
for (sigact = (FAR sigactq_t*)stcb->sigactionq.head;
((sigact) && (sigact->signo != signo));
sigact = sigact->flink);
+1 -1
View File
@@ -690,7 +690,7 @@ static char *read_line(FILE *stream)
/* Loop to handle continuation lines */
for(;;)
for (;;)
{
/* How long is the line so far? */