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

Reply via email to