minor bugfix: did not compile with PROCESS_CONF_NO_PROCESS_NAMES=1

This commit is contained in:
Fredrik Osterlind 2012-05-09 15:07:51 +02:00
parent a69b580778
commit 4cf4a48592

View file

@ -156,6 +156,7 @@ set_rime_addr(void)
printf("%d\n", addr.u8[i]); printf("%d\n", addr.u8[i]);
} }
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
#if !PROCESS_CONF_NO_PROCESS_NAMES
static void static void
print_processes(struct process * const processes[]) print_processes(struct process * const processes[])
{ {
@ -167,6 +168,7 @@ print_processes(struct process * const processes[])
} }
putchar('\n'); putchar('\n');
} }
#endif /* !PROCESS_CONF_NO_PROCESS_NAMES */
/*--------------------------------------------------------------------------*/ /*--------------------------------------------------------------------------*/
#if WITH_UIP #if WITH_UIP
static void static void
@ -393,7 +395,11 @@ main(int argc, char **argv)
watchdog_start(); watchdog_start();
#if !PROCESS_CONF_NO_PROCESS_NAMES
print_processes(autostart_processes); print_processes(autostart_processes);
#else /* !PROCESS_CONF_NO_PROCESS_NAMES */
putchar('\n'); /* include putchar() */
#endif /* !PROCESS_CONF_NO_PROCESS_NAMES */
autostart_start(autostart_processes); autostart_start(autostart_processes);
/* /*