Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Feb 2017 01:20:39 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r313259 - head/sbin/nvmecontrol
Message-ID:  <201702050120.v151Kdsu082265@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201702050120.v151Kdsu082265>