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);
 
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to