diff options
author | Chris Hall <chris.hall@highwayman.com> | 2011-03-31 00:37:47 +0100 |
---|---|---|
committer | Chris Hall <chris.hall@highwayman.com> | 2011-03-31 00:37:47 +0100 |
commit | 9a9466f1fdad6fb6c94c5ef8ddb1a687a7bcd874 (patch) | |
tree | c4ae426872560a5e070f2054072607f2578e1f7d /lib/qstring.h | |
parent | f3255d1e9f062e7783b05ab5b32ca70085170d79 (diff) | |
download | quagga-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/qstring.h')
-rw-r--r-- | lib/qstring.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/qstring.h b/lib/qstring.h index b05c738b..536105d0 100644 --- a/lib/qstring.h +++ b/lib/qstring.h @@ -454,7 +454,7 @@ Inline usize qs_delete(qstring qs, usize n) } ; Inline int qs_cmp(qstring a, qstring b) ; -Inline int qs_cmp_word(qstring a, const char* w) ; +Inline int qs_cmp_word(qstring a, qstring w) ; Inline int qs_cmp_sig(qstring a, qstring b) ; Inline bool qs_equal(qstring a, qstring b) ; Inline bool qs_substring(qstring a, qstring b) ; @@ -666,9 +666,9 @@ qs_cmp(qstring a, qstring b) * Compare qstrings to given word -- see els_cmp_word */ Inline int -qs_cmp_word(qstring a, const char* w) +qs_cmp_word(qstring a, qstring w) { - return els_cmp_word(qs_els(a), w) ; + return els_cmp_word(qs_els(a), qs_els(w)) ; } ; /*------------------------------------------------------------------------------ |