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:
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user