1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-08-07 08:02:55 +03:00

packet: Make default_packet_handlers static.

Fixes sparse warnings.
This commit is contained in:
Andreas Schneider
2012-02-18 12:19:48 +01:00
parent 66aaa6f573
commit 3888a050f8
2 changed files with 2 additions and 2 deletions

View File

@@ -48,7 +48,7 @@
#define MACSIZE SHA_DIGEST_LEN
ssh_packet_callback default_packet_handlers[]= {
static ssh_packet_callback default_packet_handlers[]= {
ssh_packet_disconnect_callback, // SSH2_MSG_DISCONNECT 1
ssh_packet_ignore_callback, // SSH2_MSG_IGNORE 2
ssh_packet_unimplemented, // SSH2_MSG_UNIMPLEMENTED 3

View File

@@ -39,7 +39,7 @@
#ifdef WITH_SSH1
ssh_packet_callback default_packet_handlers1[]= {
static ssh_packet_callback default_packet_handlers1[]= {
NULL, //SSH_MSG_NONE 0
ssh_packet_disconnect1, //SSH_MSG_DISCONNECT 1
ssh_packet_publickey1, //SSH_SMSG_PUBLIC_KEY 2