Skip to content

Commit c044d84

Browse files
committed
Struct-pack stream-related data in ftpbuf
1 parent 9c30647 commit c044d84

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

ext/ftp/ftp.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,18 +70,18 @@ typedef struct ftpbuf
7070
int autoseek; /* User configurable autoseek flag */
7171
int usepasvaddress; /* Use the address returned by the pasv command */
7272

73-
int nb; /* "nonblocking" transfer in progress */
7473
databuf_t *data; /* Data connection for "nonblocking" transfers */
7574
php_stream *stream; /* output stream for "nonblocking" transfers */
76-
int lastch; /* last char of previous call */
77-
int direction; /* recv = 0 / send = 1 */
78-
int closestream;/* close or not close stream */
75+
bool nb; /* "nonblocking" transfer in progress */
76+
char lastch; /* last char of previous call */
77+
bool direction; /* recv = 0 / send = 1 */
78+
bool closestream;/* close or not close stream */
7979
#ifdef HAVE_FTP_SSL
80-
int use_ssl; /* enable(1) or disable(0) ssl */
81-
int use_ssl_for_data; /* en/disable ssl for the dataconnection */
82-
int old_ssl; /* old mode = forced data encryption */
80+
bool use_ssl; /* enable(1) or disable(0) ssl */
81+
bool use_ssl_for_data; /* en/disable ssl for the dataconnection */
82+
bool old_ssl; /* old mode = forced data encryption */
83+
bool ssl_active; /* ssl active on control conn */
8384
SSL *ssl_handle; /* handle for control connection */
84-
int ssl_active; /* ssl active on control conn */
8585
SSL_SESSION *last_ssl_session; /* last negotiated session */
8686
#endif
8787

0 commit comments

Comments
 (0)