From 993c556000a414011626770540678948f16eaa9e Mon Sep 17 00:00:00 2001
From: lichao <lichao@aiotlink.com>
Date: 星期三, 02 六月 2021 17:40:50 +0800
Subject: [PATCH] center restart with new shm; set center node ssn.

---
 box/box.cc |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/box/box.cc b/box/box.cc
index f83f2fd..7bea9a3 100644
--- a/box/box.cc
+++ b/box/box.cc
@@ -41,7 +41,7 @@
 		}
 		return false;
 	}
-	void Apply(std::function<void(const std::string &id, const std::string &desc)> f) const
+	void Apply(std::function<void(const std::string &id, const std::string &desc)> const &f) const
 	{
 		for (auto &kv : functions_) {
 			f(kv.second.id_, kv.second.desc_);
@@ -89,11 +89,11 @@
 void Help()
 {
 	PrintLn("%s : bhome shared memory message queue box application.", kOrigName.c_str());
-	PrintLn("usage:");
+	PrintLn("%s", "usage:");
 	PrintLn("\t1) %s [function [options]...]", kOrigName.c_str());
 	PrintLn("\t2) rename or link %s to a function name then run it directly.", kOrigName.c_str());
 	PrintLn();
-	PrintLn("supported functions:");
+	PrintLn("%s", "supported functions:");
 	std::map<std::string, std::string> funcs;
 	auto getInfo = [&](const std::string &name, const std::string &desc) {
 		funcs[name] = desc;

--
Gitblit v1.8.0