From 209e1f95877e9d00430c69812ab6cd259879001f Mon Sep 17 00:00:00 2001 From: Dirk Zimoch Date: Wed, 26 Nov 2025 13:57:48 +0100 Subject: [PATCH] remove some unnecessary casts to (const char*) too --- modules/libcom/src/macLib/macUtil.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/libcom/src/macLib/macUtil.c b/modules/libcom/src/macLib/macUtil.c index 4ff70b4cd..61499425e 100644 --- a/modules/libcom/src/macLib/macUtil.c +++ b/modules/libcom/src/macLib/macUtil.c @@ -78,7 +78,7 @@ epicsStdCall macParseDefns( del[0] = FALSE; quote = 0; state = preName; - for ( c = (const char *) defns; *c != '\0'; c++ ) { + for ( c = defns; *c != '\0'; c++ ) { /* handle quotes */ if ( quote ) @@ -184,7 +184,7 @@ epicsStdCall macParseDefns( *memCpp++ = memCp; /* copy value regardless of the above */ - strncpy( memCp, (const char *) ptr[i], end[i] - ptr[i] ); + strncpy( memCp, ptr[i], end[i] - ptr[i] ); memCp += end[i] - ptr[i]; *memCp++ = '\0'; }