summaryrefslogtreecommitdiffstats
path: root/chassishandler.cpp
diff options
context:
space:
mode:
authorMatthew Barth <msbarth@us.ibm.com>2016-09-21 10:02:57 -0500
committerMatthew Barth <msbarth@us.ibm.com>2016-09-21 10:53:55 -0500
commit8b4700521afc5760474fc82ebeb861c2c84118da (patch)
treec6131043f22ab71e196c173a727a1ac371c6729a /chassishandler.cpp
parentb898314b84e808d8e64c759140bdead2e573e78e (diff)
downloadphosphor-host-ipmid-8b4700521afc5760474fc82ebeb861c2c84118da.tar.gz
phosphor-host-ipmid-8b4700521afc5760474fc82ebeb861c2c84118da.zip
Ensure all tools are building with -Wall and -Werror
Corrected resulting compiler errors from correctly adding -Wall & -Werror within configure.ac. Change-Id: Ia7aaafa83103322ad4b50171d62144624dd71e42 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Diffstat (limited to 'chassishandler.cpp')
-rw-r--r--chassishandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/chassishandler.cpp b/chassishandler.cpp
index 9a5f169..c6753e8 100644
--- a/chassishandler.cpp
+++ b/chassishandler.cpp
@@ -27,7 +27,7 @@ constexpr size_t SIZE_COOKIE = 4;
constexpr size_t SIZE_VERSION = 2;
constexpr auto MAC_ADDRESS_FORMAT = "%hhx:%hhx:%hhx:%hhx:%hhx:%hhx";
constexpr auto IP_ADDRESS_FORMAT = "%d.%d.%d.%d";
-constexpr auto PREFIX_FORMAT = "%d";
+constexpr auto PREFIX_FORMAT = "%hhd";
constexpr auto ADDR_TYPE_FORMAT = "%hhx";
//PetiBoot-Specific
static constexpr uint8_t net_conf_initial_bytes[] = {0x80,0x21, 0x70 ,0x62 ,0x21,
OpenPOWER on IntegriCloud