git: a3c57739ca07 - main - lib/libifconfig: Fix pointer-sign warnings

From: Ryan Moeller <rmoeller_at_FreeBSD.org>
Date: Tue, 13 Oct 2026 16:44:00 UTC
The branch main has been updated by rmoeller:

URL: https://cgit.FreeBSD.org/src/commit/?id=a3c57739ca07c655fbb0f9e7ddd38968186b8a76

commit a3c57739ca07c655fbb0f9e7ddd38968186b8a76
Author:     Ryan Moeller <rmoeller@FreeBSD.org>
AuthorDate: 2026-10-13 16:41:52 +0000
Commit:     Ryan Moeller <rmoeller@FreeBSD.org>
CommitDate: 2026-10-13 16:41:52 +0000

    lib/libifconfig: Fix pointer-sign warnings
    
    Fix all pointer-sign warnings generated when compiling libifconfig.
    
    A couple more snuck in while the previous batch of fixes was landing.
    
    Fixes:          963f1a5455c9 ("ifconfig: add CMIS support for 400GbE optics")
    Reviewed by:    kevans
    Approved by:    kevans (mentor)
    Differential Revision:  https://reviews.freebsd.org/D60573
---
 lib/libifconfig/libifconfig_sfp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/libifconfig/libifconfig_sfp.c b/lib/libifconfig/libifconfig_sfp.c
index dcd5ef2e8e57..a2148f44984a 100644
--- a/lib/libifconfig/libifconfig_sfp.c
+++ b/lib/libifconfig/libifconfig_sfp.c
@@ -432,7 +432,7 @@ static void
 get_cmis_string(struct i2c_info *ii, uint8_t off, char *dst)
 {
 	read_i2c_page(ii, CMIS_BASE, 0x00, 0, off,
-	    SFF_VENDOR_STRING_SIZE, dst);
+	    SFF_VENDOR_STRING_SIZE, (uint8_t *)dst);
 	dst += SFF_VENDOR_STRING_SIZE;
 	do { *dst-- = '\0'; } while (*dst == 0x20);
 }
@@ -440,7 +440,7 @@ get_cmis_string(struct i2c_info *ii, uint8_t off, char *dst)
 static void
 get_cmis_date(struct i2c_info *ii, uint8_t off, char *dst)
 {
-	char buf[SFF_VENDOR_DATE_SIZE];
+	uint8_t buf[SFF_VENDOR_DATE_SIZE];
 
 	read_i2c_page(ii, CMIS_BASE, 0x00, 0, off,
 	    SFF_VENDOR_DATE_SIZE, buf);