summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2011-04-14 16:54:18 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2011-04-18 12:38:39 +0200
commit56a4a05ae77d21978ba12fde08662833287ab5d1 (patch)
tree1aac3ca7fd27e859e4356beeb93db319b752e011
parent40316816383650cf9a4b33b43b4373aafe516d33 (diff)
downloadspice-56a4a05ae77d21978ba12fde08662833287ab5d1.tar.gz
spice-56a4a05ae77d21978ba12fde08662833287ab5d1.tar.xz
spice-56a4a05ae77d21978ba12fde08662833287ab5d1.zip
client: s/AVAILIBLE/AVAILABLE in CmdLineParser
It was mispelt in a CmdLineParser enum.
-rw-r--r--client/application.cpp2
-rw-r--r--client/cmd_line_parser.cpp4
-rw-r--r--client/cmd_line_parser.h2
-rw-r--r--client/controller.cpp2
4 files changed, 5 insertions, 5 deletions
diff --git a/client/application.cpp b/client/application.cpp
index 9d395eef..e74a871f 100644
--- a/client/application.cpp
+++ b/client/application.cpp
@@ -2183,7 +2183,7 @@ bool Application::process_cmd_line(int argc, char** argv, bool &full_screen)
DisplaySetting display_setting;
enum {
- SPICE_OPT_HOST = CmdLineParser::OPTION_FIRST_AVILABLE,
+ SPICE_OPT_HOST = CmdLineParser::OPTION_FIRST_AVAILABLE,
SPICE_OPT_PORT,
SPICE_OPT_SPORT,
SPICE_OPT_PASSWORD,
diff --git a/client/cmd_line_parser.cpp b/client/cmd_line_parser.cpp
index da4af05a..1aa5c961 100644
--- a/client/cmd_line_parser.cpp
+++ b/client/cmd_line_parser.cpp
@@ -112,7 +112,7 @@ void CmdLineParser::add_private(int id, const std::string& name, char short_name
void CmdLineParser::add(int id, const std::string& name, const std::string& help, char short_name)
{
- if (id < OPTION_FIRST_AVILABLE) {
+ if (id < OPTION_FIRST_AVAILABLE) {
THROW("invalid id");
}
add_private(id, name, short_name, NO_ARGUMENT, help, "");
@@ -121,7 +121,7 @@ void CmdLineParser::add(int id, const std::string& name, const std::string& help
void CmdLineParser::add(int id, const std::string& name, const std::string& help,
const std::string& arg_name, bool reqired_arg, char short_name)
{
- if (id < OPTION_FIRST_AVILABLE) {
+ if (id < OPTION_FIRST_AVAILABLE) {
THROW("invalid id");
}
diff --git a/client/cmd_line_parser.h b/client/cmd_line_parser.h
index 0493df80..6e6c6d50 100644
--- a/client/cmd_line_parser.h
+++ b/client/cmd_line_parser.h
@@ -25,7 +25,7 @@ public:
OPTION_ERROR = -1,
OPTION_DONE = 0,
OPTION_HELP = 256,
- OPTION_FIRST_AVILABLE,
+ OPTION_FIRST_AVAILABLE,
};
CmdLineParser(std::string description, bool allow_positional_args);
diff --git a/client/controller.cpp b/client/controller.cpp
index 476d22e3..e8d37e65 100644
--- a/client/controller.cpp
+++ b/client/controller.cpp
@@ -416,7 +416,7 @@ bool ControllerConnection::create_menu(char* resource)
bool ControllerConnection::set_multi_val(uint32_t op, char* multi_val)
{
CmdLineParser parser("", false);
- int id = CmdLineParser::OPTION_FIRST_AVILABLE;
+ int id = CmdLineParser::OPTION_FIRST_AVAILABLE;
char* argv[] = {NULL, (char*)"--set", multi_val};
char* val;