svn commit: r313259 - head/sbin/nvmecontrol
Warner Losh
imp at FreeBSD.org
Sun Feb 5 01:20:40 UTC 2017
Author: imp
Date: Sun Feb 5 01:20:39 2017
New Revision: 313259
URL: https://svnweb.freebsd.org/changeset/base/313259
Log:
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.
Modified:
head/sbin/nvmecontrol/wdc.c
Modified: head/sbin/nvmecontrol/wdc.c
==============================================================================
--- head/sbin/nvmecontrol/wdc.c Sun Feb 5 00:55:07 2017 (r313258)
+++ head/sbin/nvmecontrol/wdc.c Sun Feb 5 01:20:39 2017 (r313259)
@@ -127,7 +127,8 @@ wdc_do_dump(int fd, char *tmpl, const ch
{
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);
More information about the svn-src-all
mailing list