Make sgetbs() return the number of characters read on success

This commit is contained in:
Andrea Mazzoleni 2026-10-03 16:50:31 +02:00
parent 97419fb67f
commit 969cb5ca31
5 changed files with 35 additions and 5 deletions

View file

@ -2416,7 +2416,7 @@ static void state_read_content(struct snapraid_state* state, const char* path, S
int has_info;
int has_invalid_parity;
char buffer[PATH_MAX];
int ret;
ssize_t ret;
tommy_array disk_mapping;
uint32_t mapping_max;
tommy_hashdyn bucket_hash;