From 2f0bf2d0af5b9b749e6e195829fb7093fc8ab930 Mon Sep 17 00:00:00 2001 From: deva Date: Fri, 18 Dec 2009 08:45:12 +0000 Subject: Fix compiler warnings "format not a string literal and no format arguments". Actually exposed a bug in luaresume.cc --- server/src/macrotool_fieldnames.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'server/src/macrotool_fieldnames.cc') diff --git a/server/src/macrotool_fieldnames.cc b/server/src/macrotool_fieldnames.cc index 1d92df8..3a6e651 100644 --- a/server/src/macrotool_fieldnames.cc +++ b/server/src/macrotool_fieldnames.cc @@ -160,7 +160,7 @@ static void list() void macrotool_fieldnames(std::vector params) { if(params.size() < 1) { - printf(usage_str); + printf("%s", usage_str); return; } @@ -169,7 +169,7 @@ void macrotool_fieldnames(std::vector params) if(params[0] == "list") { if(params.size() != 1) { printf("The command 'list' does not need any parameters.\n"); - printf(usage_str); + printf("%s", usage_str); return; } list(); @@ -179,7 +179,7 @@ void macrotool_fieldnames(std::vector params) if(params[0] == "add") { if(params.size() != 3) { printf("The command 'add' needs 2 parameters.\n"); - printf(usage_str); + printf("%s", usage_str); return; } add(params[1], params[2]); @@ -189,7 +189,7 @@ void macrotool_fieldnames(std::vector params) if(params[0] == "del") { if(params.size() != 2) { printf("The command 'del' needs 1 parameter.\n"); - printf(usage_str); + printf("%s", usage_str); return; } del(params[1]); @@ -197,11 +197,11 @@ void macrotool_fieldnames(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