changes needed for meson build

Fix warnings that the meson build turns into errors.

Tested: builds without warnings.

Change-Id: I66b02c4c616f37d09ceba61c494903acc3d28bd5
Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
diff --git a/include/spiDev.hpp b/include/spiDev.hpp
index 0ebe6e5..cbe9282 100644
--- a/include/spiDev.hpp
+++ b/include/spiDev.hpp
@@ -48,8 +48,7 @@
         }
     }
 
-    void spiReadData(const uint32_t startAddr, const size_t dataLen,
-                     void* dataRes)
+    void spiReadData(uint32_t startAddr, size_t dataLen, void* dataRes)
     {
         if (lseek(fd, startAddr, SEEK_SET) < 0)
         {
@@ -58,7 +57,7 @@
             throw std::runtime_error(msg);
         }
 
-        if (read(fd, dataRes, dataLen) != dataLen)
+        if (read(fd, dataRes, dataLen) != static_cast<ssize_t>(dataLen))
         {
             std::string msg = "Failed to read on mtd device. errno=" +
                               std::string(std::strerror(errno));