1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-22 11:17:19 +00:00

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:
Warner Losh 2017-02-05 01:20:39 +00:00
parent ba6da68645
commit 1b44f31b19
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=313259

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);