OSDN Git Service

Improvement to compilation warning about indication of SIGNUM.
[ultramonkey-l7/ultramonkey-l7-v3.git] / l7vsd / src / l7vsd.cpp
index f71bd06..a83f9aa 100644 (file)
@@ -1341,7 +1341,7 @@ int    l7vsd::run(int argc, char *argv[])
                 for (;;) {
                         if (unlikely(exit_requested)) {
                                 std::stringstream buf;
-                                buf << boost::format("l7vsd signal(%d) received. exiting...") % received_sig;
+                                buf << boost::format("l7vsd signal(%d) received. exiting...") % reinterpret_cast<int>(received_sig);
                                 logger.putLogInfo(LOG_CAT_L7VSD_MAINTHREAD, 1, buf.str(), __FILE__, __LINE__);
                                 break;
                         }