summaryrefslogtreecommitdiffstats
path: root/lib/vty_io_file.c
diff options
context:
space:
mode:
authorChris Hall <chris.hall@highwayman.com>2011-03-31 00:37:47 +0100
committerChris Hall <chris.hall@highwayman.com>2011-03-31 00:37:47 +0100
commit9a9466f1fdad6fb6c94c5ef8ddb1a687a7bcd874 (patch)
treec4ae426872560a5e070f2054072607f2578e1f7d /lib/vty_io_file.c
parentf3255d1e9f062e7783b05ab5b32ca70085170d79 (diff)
downloadquagga-9a9466f1fdad6fb6c94c5ef8ddb1a687a7bcd874.tar.bz2
quagga-9a9466f1fdad6fb6c94c5ef8ddb1a687a7bcd874.tar.xz
Small improvements to speed of reading of configuration file.
Tidy up signalling of "ready" to command loop, and checking of appropriate state to close written configuration file.
Diffstat (limited to 'lib/vty_io_file.c')
-rw-r--r--lib/vty_io_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vty_io_file.c b/lib/vty_io_file.c
index 4b1a8cfa..b98dd694 100644
--- a/lib/vty_io_file.c
+++ b/lib/vty_io_file.c
@@ -700,7 +700,7 @@ uty_file_read_close(vio_vf vf, bool final)
extern cmd_return_code_t
uty_file_write_close(vio_vf vf, bool final, bool base)
{
- VTY_ASSERT_CLI_THREAD_LOCKED() ;
+ VTY_ASSERT_CAN_CLOSE_VF(vf) ;
assert(vf->vout_state == vf_closing) ;
assert((vf->vout_type == VOUT_FILE) || (vf->vout_type == VOUT_CONFIG)) ;