dparrish / libcli

Libcli provides a shared library for including a Cisco-like command-line interface into other software. It's a telnet interface which supports command-line editing, history, authentication and callbacks for a user-definable function tree.
https://dparrish.com/link/libcli
GNU Lesser General Public License v2.1
289 stars 143 forks source link

Fix cli_init declaration when -Werror=strict-prototypes is used #60

Closed JackDanielZ closed 4 years ago

JackDanielZ commented 4 years ago

The following error appears if the file libcli.h is included in a source file compiled with strict-prototypes:

libcli/libcli.h:189:8: error: function declaration isn't a prototype [-Werror=strict-prototypes] 189 | struct cli_def *cli_init();

Setting void as parameter solves the issue.