]> git.ipfire.org Git - thirdparty/asterisk.git/commit
core: Minor cleanup of ast_el_read_char.
authorCorey Farrell <git@cfware.com>
Sat, 17 Mar 2018 21:41:13 +0000 (17:41 -0400)
committerCorey Farrell <git@cfware.com>
Sat, 17 Mar 2018 22:47:54 +0000 (16:47 -0600)
commit98a3baca708caf7d8addf96fbec284fea755f6d3
tree1513c50ed0d3e39abb8a36b738b85c631b5c25b1
parentb50331626ed45ed73f381050738c8e595654639b
core: Minor cleanup of ast_el_read_char.

* Define CHAR_T_LIBEDIT and CHAR_TO_LIBEDIT based on
  HAVE_LIBEDIT_IS_UNICODE.  This avoids needing to repeatedly use
  conditional blocks, eliminates having multiple function prototypes.
* Remove parenthesis from return values.
* Add missing code block brackets {}.
* Reduce use of 'else' conditional statements where possible.

Change-Id: I4315328ebea2f62641faf6881de2ac20a9f9d08e
main/asterisk.c