fix typo
authorStephane Desneux <stephane.desneux@iot.bzh>
Mon, 28 Aug 2017 12:44:12 +0000 (14:44 +0200)
committerStephane Desneux <stephane.desneux@iot.bzh>
Mon, 28 Aug 2017 12:44:12 +0000 (14:44 +0200)
Change-Id: Ifb2de3c13f814f16f23ead9357f4fec97b3e675c
Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
CMakeLists.txt
src/afb-config.c

index eb2d2d1..0605e2e 100644 (file)
@@ -116,7 +116,7 @@ SET(binding_install_dir ${CMAKE_INSTALL_FULL_LIBDIR}/afb)
 # activates the monitoring by default
 set(INCLUDE_MONITORING ON CACHE BOOL "Activates installation of monitoring")
 if(INCLUDE_MONITORING)
-       add_definitions(-DWITH_MONITORING_OTPION)
+       add_definitions(-DWITH_MONITORING_OPTION)
        INSTALL(DIRECTORY
                ${CMAKE_CURRENT_SOURCE_DIR}/test/monitoring
                DESTINATION
index f08081f..3a50e41 100644 (file)
@@ -87,7 +87,7 @@
 #define SET_TRACEEVT       'E'
 #define SET_EXEC           'e'
 #define DISPLAY_HELP       'h'
-#if defined(WITH_MONITORING_OTPION)
+#if defined(WITH_MONITORING_OPTION)
 #define SET_MONITORING     'M'
 #endif
 #define SET_TCP_PORT       'p'
 
 const char shortopts[] =
        "c:D:E:ehp:qrT:t:u:Vvw:"
-#if defined(WITH_MONITORING_OTPION)
+#if defined(WITH_MONITORING_OPTION)
        "M"
 #endif
 ;
@@ -170,7 +170,7 @@ static AFB_options cliOptions[] = {
        {SET_NO_HTTPD,      0, "no-httpd",    "Forbids HTTP service"},
        {SET_EXEC,          0, "exec",        "Execute the remaining arguments"},
 
-#if defined(WITH_MONITORING_OTPION)
+#if defined(WITH_MONITORING_OPTION)
        {SET_MONITORING,    0, "monitoring",  "enable HTTP monitoring at <ROOT>/monitoring/"},
 #endif
        {0, 0, NULL, NULL}
@@ -483,7 +483,7 @@ static void parse_arguments(int argc, char **argv, struct afb_config *config)
 
                case SET_SESSION_DIR:
                        /* config->sessiondir = argvalstr(optc); */
-                       WARNING("Obsolete otpion %s ignored", name_of_option(optc));
+                       WARNING("Obsolete option %s ignored", name_of_option(optc));
                        break;
 
                case SET_UPLOAD_DIR:
@@ -566,7 +566,7 @@ static void parse_arguments(int argc, char **argv, struct afb_config *config)
                        config->random_token = 1;
                        break;
 
-#if defined(WITH_MONITORING_OTPION)
+#if defined(WITH_MONITORING_OPTION)
                case SET_MONITORING:
                        config->monitoring = 1;
                        break;
@@ -634,7 +634,7 @@ static void fulfill_config(struct afb_config *config)
        if (config->ldpaths == NULL && config->weak_ldpaths == NULL && !config->no_ldpaths)
                list_add(&config->ldpaths, BINDING_INSTALL_DIR);
 
-#if defined(WITH_MONITORING_OTPION)
+#if defined(WITH_MONITORING_OPTION)
        if (config->monitoring)
                list_add(&config->aliases, strdup("/monitoring:"BINDING_INSTALL_DIR"/monitoring"));
 #endif