From 5312647592dec35c51060a9ceaee4fe08cf61a1f Mon Sep 17 00:00:00 2001 From: Robert Edmonds Date: Sun, 2 Sep 2018 18:03:48 -0400 Subject: [PATCH] protoc-c: Rename 'legacy_name' to 'standalone_name' --- protoc-c/main.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protoc-c/main.cc b/protoc-c/main.cc index 93c42d0..2095a49 100644 --- a/protoc-c/main.cc +++ b/protoc-c/main.cc @@ -9,9 +9,9 @@ int main(int argc, char* argv[]) { std::string invocation_name = argv[0]; std::string invocation_basename = invocation_name.substr(invocation_name.find_last_of("/") + 1); - const std::string legacy_name = "protoc-c"; + const std::string standalone_name = "protoc-c"; - if (invocation_basename == legacy_name) { + if (invocation_basename == standalone_name) { google::protobuf::compiler::CommandLineInterface cli; cli.RegisterGenerator("--c_out", &c_generator, "Generate C/H files."); cli.SetVersionInfo(PACKAGE_STRING);