readeeprom: c-library cleanup

Include cpp libraries for c-library calls.

Change-Id: Id082853977b2d0e3dde2bafa5a9eafe5252d9e0f
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/readeeprom.cpp b/readeeprom.cpp
index b8b2fd8..2f0e666 100644
--- a/readeeprom.cpp
+++ b/readeeprom.cpp
@@ -1,6 +1,8 @@
 #include "argument.hpp"
 #include "writefrudata.hpp"
 
+#include <cstdlib>
+#include <cstring>
 #include <iostream>
 #include <memory>
 
@@ -42,7 +44,7 @@
     }
 
     // Extract the fruid
-    fruid = strtol(fruid_str.c_str(), NULL, 16);
+    fruid = std::strtol(fruid_str.c_str(), NULL, 16);
     if (fruid == 0)
     {
         // User has not passed in the appropriate argument value
@@ -56,7 +58,8 @@
     rc = sd_bus_open_system(&bus_type);
     if (rc < 0)
     {
-        fprintf(stderr, "Failed to connect to system bus: %s\n", strerror(-rc));
+        std::fprintf(stderr, "Failed to connect to system bus: %s\n",
+                     std::strerror(-rc));
     }
     else
     {