xiaoxiang781216 commented on code in PR #10343:
URL: https://github.com/apache/nuttx/pull/10343#discussion_r1301331771
##########
fs/shm/shmfs.c:
##########
@@ -163,7 +163,7 @@ static ssize_t shmfs_write(FAR struct file *filep, FAR
const char *buffer,
if (sho->paddr != NULL)
{
- memcpy(sho->paddr + startpos, buffer, nwritten);
+ memcpy((char *)sho->paddr + startpos, buffer, nwritten);
Review Comment:
ditto
##########
fs/shm/shmfs.c:
##########
@@ -119,7 +119,7 @@ static ssize_t shmfs_read(FAR struct file *filep, FAR char
*buffer,
if (sho->paddr != NULL)
{
- memcpy(buffer, sho->paddr + startpos, nread);
+ memcpy(buffer, (char *)sho->paddr + startpos, nread);
Review Comment:
add FAR
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]