From bab8d84d13bdbc7ac69d608bb792748e669e1db4 Mon Sep 17 00:00:00 2001 From: Anderson Toshiyuki Sasaki Date: Tue, 5 Nov 2019 14:07:36 +0100 Subject: [PATCH] session: Use ssh_packet_state_e instead of int Use the enum type instead of int in the ssh_session_struct Fixes T194 Signed-off-by: Anderson Toshiyuki Sasaki Reviewed-by: Andreas Schneider (cherry picked from commit 77bd8ed4c0dd3526218184b983cdc2e4c5695abf) --- include/libssh/session.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/libssh/session.h b/include/libssh/session.h index 6558da46..af02237d 100644 --- a/include/libssh/session.h +++ b/include/libssh/session.h @@ -145,7 +145,7 @@ struct ssh_session_struct { /* where it was before being interrupted */ enum ssh_pending_call_e pending_call_state; enum ssh_session_state_e session_state; - int packet_state; + enum ssh_packet_state_e packet_state; enum ssh_dh_state_e dh_handshake_state; enum ssh_channel_request_state_e global_req_state; struct ssh_agent_state_struct *agent_state;