diff options
| author | whitespace / reindent <invalid@invalid.invalid> | 2017-07-17 14:03:14 +0200 | 
|---|---|---|
| committer | whitespace / reindent <invalid@invalid.invalid> | 2017-07-17 14:04:07 +0200 | 
| commit | d62a17aedeb0eebdba98238874bb13d62c48dbf9 (patch) | |
| tree | 3b319b1d61c8b85b4d1f06adf8b844bb8a9b5107 /lib/grammar_sandbox_main.c | |
| parent | 888ac268a0077fc9ebd1218cec6ae472af0bfc40 (diff) | |
*: reindentreindent-master-after
indent.py `git ls-files | pcregrep '\.[ch]$' | pcregrep -v '^(ldpd|babeld|nhrpd)/'`
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/grammar_sandbox_main.c')
| -rw-r--r-- | lib/grammar_sandbox_main.c | 40 | 
1 files changed, 20 insertions, 20 deletions
diff --git a/lib/grammar_sandbox_main.c b/lib/grammar_sandbox_main.c index 02aefd603d..c236d2c7be 100644 --- a/lib/grammar_sandbox_main.c +++ b/lib/grammar_sandbox_main.c @@ -28,37 +28,37 @@  static void vty_do_exit(void)  { -  printf ("\nend.\n"); -  exit (0); +	printf("\nend.\n"); +	exit(0);  }  struct thread_master *master;  int main(int argc, char **argv)  { -  struct thread thread; +	struct thread thread; -  master = thread_master_create(NULL); +	master = thread_master_create(NULL); -  openzlog ("grammar_sandbox", "NONE", 0, -                           LOG_CONS|LOG_NDELAY|LOG_PID, LOG_DAEMON); -  zlog_set_level (ZLOG_DEST_SYSLOG, ZLOG_DISABLED); -  zlog_set_level (ZLOG_DEST_STDOUT, LOG_DEBUG); -  zlog_set_level (ZLOG_DEST_MONITOR, ZLOG_DISABLED); +	openzlog("grammar_sandbox", "NONE", 0, LOG_CONS | LOG_NDELAY | LOG_PID, +		 LOG_DAEMON); +	zlog_set_level(ZLOG_DEST_SYSLOG, ZLOG_DISABLED); +	zlog_set_level(ZLOG_DEST_STDOUT, LOG_DEBUG); +	zlog_set_level(ZLOG_DEST_MONITOR, ZLOG_DISABLED); -  /* Library inits. */ -  cmd_init (1); -  host.name = strdup ("test"); +	/* Library inits. */ +	cmd_init(1); +	host.name = strdup("test"); -  vty_init (master); -  memory_init (); +	vty_init(master); +	memory_init(); -  vty_stdio (vty_do_exit); +	vty_stdio(vty_do_exit); -  /* Fetch next active thread. */ -  while (thread_fetch (master, &thread)) -    thread_call (&thread); +	/* Fetch next active thread. */ +	while (thread_fetch(master, &thread)) +		thread_call(&thread); -  /* Not reached. */ -  exit (0); +	/* Not reached. */ +	exit(0);  }  | 
