You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2018/09/27 12:37:27 UTC

[GitHub] andrzej-kaczmarek closed pull request #11: portability: Avoid void* arithmetics which is a GNU extension

andrzej-kaczmarek closed pull request #11: portability: Avoid void* arithmetics which is a GNU extension
URL: https://github.com/apache/mynewt-nffs/pull/11
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/src/nffs_write.c b/src/nffs_write.c
index ae56945..b85e769 100644
--- a/src/nffs_write.c
+++ b/src/nffs_write.c
@@ -353,7 +353,9 @@ nffs_write_chunk(struct nffs_inode_entry *inode_entry, uint32_t file_offset,
 
         data_offset = cache_block->ncb_file_offset + chunk_off - file_offset;
         rc = nffs_write_over_block(cache_block->ncb_block.nb_hash_entry,
-                                   chunk_off, data + data_offset, chunk_sz);
+                                   chunk_off,
+                                   (const uint8_t *)data + data_offset,
+                                   chunk_sz);
         if (rc != 0) {
             return rc;
         }


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services