[PATCH 05/18] ptpd: Add missing cast in dictionary.c

Gabriel Moyano gabriel.moyano at dlr.de
Wed Apr 12 13:54:09 UTC 2023


From: Chris Johns <chrisj at rtems.org>

---
 freebsd/contrib/ptpd/src/dep/iniparser/dictionary.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/freebsd/contrib/ptpd/src/dep/iniparser/dictionary.c b/freebsd/contrib/ptpd/src/dep/iniparser/dictionary.c
index ffe35791..772ff8ce 100644
--- a/freebsd/contrib/ptpd/src/dep/iniparser/dictionary.c
+++ b/freebsd/contrib/ptpd/src/dep/iniparser/dictionary.c
@@ -369,7 +369,7 @@ void dictionary_replace(dictionary * d, const char * search, const char * replac
 	     do {
 		pos=found;
 
-		for (j=0; j < strlen(search); j++) {
+		for (j=0; j < (int) strlen(search); j++) {
 		    *pos='\0';
 		    pos++;
 		}
-- 
2.25.1



More information about the devel mailing list