diff --git a/apps/emqx/include/emqx.hrl b/apps/emqx/include/emqx.hrl index 3e484ae5a..916eda533 100644 --- a/apps/emqx/include/emqx.hrl +++ b/apps/emqx/include/emqx.hrl @@ -14,8 +14,8 @@ %% limitations under the License. %%-------------------------------------------------------------------- --ifndef(EMQ_X_HRL). --define(EMQ_X_HRL, true). +-ifndef(EMQX_HRL). +-define(EMQX_HRL, true). %% Shard %%-------------------------------------------------------------------- diff --git a/apps/emqx/include/emqx_mqtt.hrl b/apps/emqx/include/emqx_mqtt.hrl index 4354d34fb..2e30cf31c 100644 --- a/apps/emqx/include/emqx_mqtt.hrl +++ b/apps/emqx/include/emqx_mqtt.hrl @@ -14,8 +14,8 @@ %% limitations under the License. %%-------------------------------------------------------------------- --ifndef(EMQ_X_MQTT_HRL). --define(EMQ_X_MQTT_HRL, true). +-ifndef(EMQX_MQTT_HRL). +-define(EMQX_MQTT_HRL, true). -define(UINT_MAX, 16#FFFFFFFF). diff --git a/apps/emqx/include/emqx_placeholder.hrl b/apps/emqx/include/emqx_placeholder.hrl index d9eea7fc3..0d743565b 100644 --- a/apps/emqx/include/emqx_placeholder.hrl +++ b/apps/emqx/include/emqx_placeholder.hrl @@ -14,8 +14,8 @@ %% limitations under the License. %%-------------------------------------------------------------------- --ifndef(EMQ_X_PLACEHOLDER_HRL). --define(EMQ_X_PLACEHOLDER_HRL, true). +-ifndef(EMQX_PLACEHOLDER_HRL). +-define(EMQX_PLACEHOLDER_HRL, true). -define(PH(Type), <<"${", Type/binary, "}">> ). diff --git a/apps/emqx/src/emqx_release.erl b/apps/emqx/src/emqx_release.erl index ac7c7256b..314fe1289 100644 --- a/apps/emqx/src/emqx_release.erl +++ b/apps/emqx/src/emqx_release.erl @@ -25,15 +25,15 @@ -include("emqx_release.hrl"). -%% @doc Return EMQ X description. +%% @doc Return EMQX description. description() -> case os:getenv("EMQX_DESCRIPTION") of - false -> "EMQ X Community Edition"; - "" -> "EMQ X Community Edition"; + false -> "EMQX Community Edition"; + "" -> "EMQX Community Edition"; Str -> string:strip(Str, both, $\n) end. -%% @doc Return EMQ X edition info. +%% @doc Return EMQX edition info. %% Read info from persistent_term at runtime. %% Or meck this function to run tests for another eidtion. -spec edition() -> ce | ee | edge. @@ -41,7 +41,7 @@ edition() -> try persistent_term:get(emqx_edition) catch error : badarg -> get_edition() end. -%% @private initiate EMQ X edition info in persistent_term. +%% @private initiate EMQX edition info in persistent_term. put_edition() -> ok = put_edition(get_edition()). diff --git a/apps/emqx/src/emqx_schema.erl b/apps/emqx/src/emqx_schema.erl index a7be853bf..fb067e36c 100644 --- a/apps/emqx/src/emqx_schema.erl +++ b/apps/emqx/src/emqx_schema.erl @@ -119,7 +119,7 @@ For per-listener overrides see authentication in listener configs

-EMQ X can be configured with: +EMQX can be configured with: