Use ssize_t instead of uint32_t to prevent warnings about a comparison

with different signs. Due to the promotion rules, this would only
happen on 32-bit platforms.
This commit is contained in:
imp 2017-02-05 01:20:39 +00:00
parent a0eebeae53
commit 61164e9188

View File

@ -127,7 +127,8 @@ wdc_do_dump(int fd, char *tmpl, const char *suffix, uint32_t opcode,
{
int fd2;
uint8_t *buf;
uint32_t len, resid, offset;
uint32_t len, offset;
ssize_t resid;
wdc_append_serial_name(fd, tmpl, MAXPATHLEN, suffix);