summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/cli.c
diff options
context:
space:
mode:
authormouring <mouring@openbsd.org>2001-05-06 17:52:07 +0000
committermouring <mouring@openbsd.org>2001-05-06 17:52:07 +0000
commit30a7db8ba547ed636568b05f5dc994ba859a267d (patch)
tree0e9b8a0b68fb87a4937742df4ae54257d2e6493c /usr.bin/ssh/cli.c
parentincrease version since we've removed -b; per fgsch@'s suggestion (diff)
downloadwireguard-openbsd-30a7db8ba547ed636568b05f5dc994ba859a267d.tar.xz
wireguard-openbsd-30a7db8ba547ed636568b05f5dc994ba859a267d.zip
Use const for 'prompt'. Brought over from portable tree.
Diffstat (limited to 'usr.bin/ssh/cli.c')
-rw-r--r--usr.bin/ssh/cli.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/ssh/cli.c b/usr.bin/ssh/cli.c
index 8f0b2b87e36..7fe705742fa 100644
--- a/usr.bin/ssh/cli.c
+++ b/usr.bin/ssh/cli.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cli.c,v 1.11 2001/03/06 00:33:04 deraadt Exp $ */
+/* $OpenBSD: cli.c,v 1.12 2001/05/06 17:52:07 mouring Exp $ */
/*
* Copyright (c) 2000 Markus Friedl. All rights reserved.
@@ -25,7 +25,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: cli.c,v 1.11 2001/03/06 00:33:04 deraadt Exp $");
+RCSID("$OpenBSD: cli.c,v 1.12 2001/05/06 17:52:07 mouring Exp $");
#include "xmalloc.h"
#include "log.h"
@@ -162,7 +162,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;
@@ -194,7 +194,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;