Date: Thu, 1 Feb 2018 19:41:46 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r328722 - stable/11/sbin/nvmecontrol Message-ID: <201802011941.w11Jfkf7030298@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mav Date: Thu Feb 1 19:41:46 2018 New Revision: 328722 URL: https://svnweb.freebsd.org/changeset/base/328722 Log: MFC r313259 (by imp): 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: stable/11/sbin/nvmecontrol/wdc.c Directory Properties: stable/11/ (props changed) Modified: stable/11/sbin/nvmecontrol/wdc.c ============================================================================== --- stable/11/sbin/nvmecontrol/wdc.c Thu Feb 1 19:40:51 2018 (r328721) +++ stable/11/sbin/nvmecontrol/wdc.c Thu Feb 1 19:41:46 2018 (r328722) @@ -127,7 +127,8 @@ wdc_do_dump(int fd, char *tmpl, const char *suffix, ui { 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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802011941.w11Jfkf7030298>