diff --git a/sbin/nvmecontrol/wdc.c b/sbin/nvmecontrol/wdc.c index 80ed84532b09..26eca4388370 100644 --- a/sbin/nvmecontrol/wdc.c +++ b/sbin/nvmecontrol/wdc.c @@ -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);