From 92e78f8c6424f0d466e1df673228870ef009105b Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Wed, 17 Jan 2001 11:10:48 +1100 Subject: - (djm) Avoid warning in PAM code by making read_passphrase arguments const --- cli.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli.c') diff --git a/cli.c b/cli.c index f5c6728cb..931107f28 100644 --- a/cli.c +++ b/cli.c @@ -129,7 +129,7 @@ cli_read(char* buf, int size, int echo) } static int -cli_write(char* buf, int size) +cli_write(const char* buf, int size) { int i, len, pos, ret = 0; char *output, *p; @@ -161,7 +161,7 @@ cli_write(char* buf, int size) * buffer is storing the response. */ char* -cli_read_passphrase(char* prompt, int from_stdin, int echo_enable) +cli_read_passphrase(const char* prompt, int from_stdin, int echo_enable) { char buf[BUFSIZ]; char* p; -- cgit v1.2.3