mgmt: Fix comparing usigned < 0

Fix type from size_t to ssize_t.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
Andrei Emeltchenko 2023-04-13 16:32:45 +03:00 committed by Anas Nashif
parent ce5de8557b
commit 37575def5f

View file

@ -206,7 +206,7 @@ static int fs_mgmt_file_download(struct smp_streamer *ctxt)
uint8_t file_data[MCUMGR_GRP_FS_DL_CHUNK_SIZE];
char path[CONFIG_MCUMGR_GRP_FS_PATH_LEN + 1];
uint64_t off = ULLONG_MAX;
size_t bytes_read = 0;
ssize_t bytes_read = 0;
int rc;
zcbor_state_t *zse = ctxt->writer->zs;
zcbor_state_t *zsd = ctxt->reader->zs;