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:		963f1a5455 ("ifconfig: add CMIS support for 400GbE optics")
Reviewed by:	kevans
Approved by:	kevans (mentor)
Differential Revision:	https://reviews.freebsd.org/D60573
This commit is contained in:
Ryan Moeller committed 2026-10-13 12:41:52 -04:00
1 parent 686323c182
commit a3c57739ca
1 file changed
+2 -2
+2 -2
View File
@@ -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);