diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2016-11-16 15:00:52 +0900 |
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2016-12-01 17:25:56 +0100 |
| commit | 0b84f294904959a4be58db6fe0e89d71b2c1f401 (patch) | |
| tree | f52c765644294f314ede33506f29b6888439b904 /lib/thread.h | |
| parent | 0577b824e137f143c899a567b1bbeb109841c796 (diff) | |
*: make DEFUN installations file-local
This moves all install_element calls into the file where the DEFUNs are
located. This fixes several small related bugs:
- ospf6d wasn't installing a "no interface FOO" command
- zebra had a useless copy of "interface FOO"
- pimd's copy of "interface FOO" was not setting qobj_index, which means
"description LINE" commands would fail with an error
The next commit will do the actual act of making "foo_cmd" static.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/thread.h')
| -rw-r--r-- | lib/thread.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/thread.h b/lib/thread.h index e41e96dec2..5c6b96a32d 100644 --- a/lib/thread.h +++ b/lib/thread.h @@ -244,8 +244,7 @@ extern void thread_set_yield_time (struct thread *, unsigned long); /* Internal libzebra exports */ extern void thread_getrusage (RUSAGE_T *); -extern struct cmd_element show_thread_cpu_cmd; -extern struct cmd_element clear_thread_cpu_cmd; +extern void thread_cmd_init (void); /* replacements for the system gettimeofday(), clock_gettime() and * time() functions, providing support for non-decrementing clock on |
