From c44cc1989fe1b4cd94c115fb9a62b73afc46e62f Mon Sep 17 00:00:00 2001 From: deva Date: Fri, 12 Feb 2010 13:53:00 +0000 Subject: Fix compiler warnings. --- server/src/macrotool_filehandler.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'server/src/macrotool_filehandler.cc') diff --git a/server/src/macrotool_filehandler.cc b/server/src/macrotool_filehandler.cc index d0245ba..c52921a 100644 --- a/server/src/macrotool_filehandler.cc +++ b/server/src/macrotool_filehandler.cc @@ -190,7 +190,7 @@ static void add(std::string file) void macrotool_filehandler(std::vector params) { if(params.size() < 1) { - printf(usage_str); + printf("%s", usage_str); return; } @@ -199,7 +199,7 @@ void macrotool_filehandler(std::vector params) if(params[0] == "add") { if(params.size() != 2) { printf("The command 'add' needs 1 parameter.\n"); - printf(usage_str); + printf("%s", usage_str); return; } add(params[1]); @@ -209,7 +209,7 @@ void macrotool_filehandler(std::vector params) if(params[0] == "check") { if(params.size() != 2) { printf("The command 'check' needs 1 parameter.\n"); - printf(usage_str); + printf("%s", usage_str); return; } check(params[1]); @@ -217,11 +217,11 @@ void macrotool_filehandler(std::vector params) } if(params[0] == "help") { - printf(usage_str); + printf("%s", usage_str); return; } printf("Unknown command '%s'\n", params[0].c_str()); - printf(usage_str); + printf("%s", usage_str); return; } -- cgit v1.2.3