|
From: Jose N. <jo...@mo...> - 2002-11-19 18:10:52
|
this patch adds the library function vcli_loop(), which uses a variable prompt. it is documented in the cli.3 manpage if you would like to see. i haven't been able to get it to work, mainly because of a problem revealed by the compiler: cli.c:119: warning: passing arg 2 of `strlcpy' makes pointer from integer without a cast have a look, please fix up, but more importantly is the interface decent and clean? this patch also fixes a minor misuse of prompt vs cli_prompt in cli_loop(): - fprintf(streamout, "%s", prompt); /* XXX */ + fprintf(streamout, "%s", cli_prompt); /* XXX */ basically we truncated (via strlcpy()) for nothing, this uses what we intended to use. ___________________________ jose nazario, ph.d. jo...@mo... http://www.monkey.org/~jose/ |