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 144 forks source link

Some fixes to make the code more usable under stricter set of warnings. #6

Closed amishHammer closed 12 years ago

amishHammer commented 12 years ago

Make arguments of strings const where appropriate to avoid having to cast "asedf" to (char *)"asedf".

Check returns or:

vsnprintf

write <- wrap in function that acutaully garentees the full write or
returns an error.

Fix some signed/unsigned comparison issues.