summaryrefslogtreecommitdiff
path: root/cli.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2001-01-17 11:10:48 +1100
committerDamien Miller <djm@mindrot.org>2001-01-17 11:10:48 +1100
commit92e78f8c6424f0d466e1df673228870ef009105b (patch)
tree1809206c2385b1a49b459a80dba363a352effaa2 /cli.c
parenta64b57a157068c793ac7be2ad276b208a7d10a90 (diff)
- (djm) Avoid warning in PAM code by making read_passphrase arguments const
Diffstat (limited to 'cli.c')
-rw-r--r--cli.c4
1 files changed, 2 insertions, 2 deletions
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)
129} 129}
130 130
131static int 131static int
132cli_write(char* buf, int size) 132cli_write(const char* buf, int size)
133{ 133{
134 int i, len, pos, ret = 0; 134 int i, len, pos, ret = 0;
135 char *output, *p; 135 char *output, *p;
@@ -161,7 +161,7 @@ cli_write(char* buf, int size)
161 * buffer is storing the response. 161 * buffer is storing the response.
162 */ 162 */
163char* 163char*
164cli_read_passphrase(char* prompt, int from_stdin, int echo_enable) 164cli_read_passphrase(const char* prompt, int from_stdin, int echo_enable)
165{ 165{
166 char buf[BUFSIZ]; 166 char buf[BUFSIZ];
167 char* p; 167 char* p;