mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-10 10:26:47 +09:00
sftp: Use bool for is_eof in sftp_packet_read()
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit 0e317e612f)
This commit is contained in:
@@ -26,6 +26,7 @@
|
|||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
|
#include <stdbool.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
@@ -332,7 +333,8 @@ sftp_packet sftp_packet_read(sftp_session sftp)
|
|||||||
uint8_t buffer[SFTP_BUFFER_SIZE_MAX];
|
uint8_t buffer[SFTP_BUFFER_SIZE_MAX];
|
||||||
sftp_packet packet = sftp->read_packet;
|
sftp_packet packet = sftp->read_packet;
|
||||||
uint32_t size;
|
uint32_t size;
|
||||||
int nread, is_eof;
|
int nread;
|
||||||
|
bool is_eof;
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
packet->sftp = sftp;
|
packet->sftp = sftp;
|
||||||
|
|||||||
Reference in New Issue
Block a user