aboutsummaryrefslogtreecommitdiff
path: root/src/server.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2011-09-11 15:12:35 +0200
committerAndreas Schneider <asn@cryptomilk.org>2011-09-11 15:12:35 +0200
commit95ec57f2fd5c1a339925e5e23bd4f7f0a8081dc9 (patch)
treeb1243be30ffac2bcb2be4718e733c9ad6eca9c6e /src/server.c
parenta5d89624d54c8a9a0e465698b81b13190f67e150 (diff)
downloadlibssh-95ec57f2fd5c1a339925e5e23bd4f7f0a8081dc9.tar.gz
libssh-95ec57f2fd5c1a339925e5e23bd4f7f0a8081dc9.tar.xz
libssh-95ec57f2fd5c1a339925e5e23bd4f7f0a8081dc9.zip
server: Fix compiler warning.
Diffstat (limited to 'src/server.c')
-rw-r--r--src/server.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/server.c b/src/server.c
index 5ca036f3..605cd174 100644
--- a/src/server.c
+++ b/src/server.c
@@ -71,7 +71,8 @@ static int dh_handshake_server(ssh_session session);
* @{
*/
-extern char *supported_methods[];
+extern const char *supported_methods[];
+
/** @internal
* This functions sets the Key Exchange protocols to be accepted
* by the server. They depend on
@@ -84,7 +85,7 @@ extern char *supported_methods[];
static int server_set_kex(ssh_session session) {
KEX *server = &session->server_kex;
int i, j;
- char *wanted;
+ const char *wanted;
ZERO_STRUCTP(server);
ssh_get_random(server->cookie, 16, 0);