From 3d966ae7895b40c7a4985f61ff4819c25c8618c9 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Sat, 11 May 2024 13:01:10 -0600 Subject: [PATCH] nvmecontrol: Appease a meaningless signed error warning thing Consistently use the weird ssize_t type for things I know are unsigned, but which none-the-less need to be compared to signed things to prevent a bogus warning. Sigh, these aren't bugs, can't possibly be bugs and a waste of time to fix. Sponsored by: Netflix --- sbin/nvmecontrol/telemetry.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbin/nvmecontrol/telemetry.c b/sbin/nvmecontrol/telemetry.c index df83382d50ed..72c304229a80 100644 --- a/sbin/nvmecontrol/telemetry.c +++ b/sbin/nvmecontrol/telemetry.c @@ -96,9 +96,9 @@ telemetry_log(const struct cmd *f, int argc, char *argv[]) int fd, fdout; char *path; uint32_t nsid; - uint64_t size; + ssize_t size; uint64_t off; - uint32_t chunk; + ssize_t chunk; struct nvme_controller_data cdata; bool can_telemetry; struct nvme_telemetry_log_page tlp, buf;