Format all sources with Uncrustify
Formatted all sources and manually tuned some files to make the code look neater.
This commit is contained in:
@ -151,9 +151,9 @@ extern "C"
|
||||
{
|
||||
static modulecmd_arg_type_t args[] =
|
||||
{
|
||||
{MODULECMD_ARG_SERVICE, "Service where the user is added" },
|
||||
{MODULECMD_ARG_STRING, "User to add" },
|
||||
{MODULECMD_ARG_STRING, "Password of the user" }
|
||||
{MODULECMD_ARG_SERVICE, "Service where the user is added"},
|
||||
{MODULECMD_ARG_STRING, "User to add" },
|
||||
{MODULECMD_ARG_STRING, "Password of the user" }
|
||||
};
|
||||
|
||||
modulecmd_register_command("cdc",
|
||||
@ -192,7 +192,9 @@ extern "C"
|
||||
NULL, /* Process finish. */
|
||||
NULL, /* Thread init. */
|
||||
NULL, /* Thread finish. */
|
||||
{{MXS_END_MODULE_PARAMS}}
|
||||
{
|
||||
{MXS_END_MODULE_PARAMS}
|
||||
}
|
||||
};
|
||||
|
||||
return &info;
|
||||
|
||||
@ -207,7 +207,7 @@ void gssapi_auth_free(void* data)
|
||||
*
|
||||
* @return Allocated packet or NULL if memory allocation failed
|
||||
* @see
|
||||
*https://dev.mysql.com/doc/internals/en/connection-phase-packets.html#packet-Protocol::AuthSwitchRequest
|
||||
* https://dev.mysql.com/doc/internals/en/connection-phase-packets.html#packet-Protocol::AuthSwitchRequest
|
||||
* @see https://web.mit.edu/kerberos/krb5-1.5/krb5-1.5.4/doc/krb5-user/What-is-a-Kerberos-Principal_003f.html
|
||||
*/
|
||||
static GWBUF* create_auth_change_packet(GSSAPI_INSTANCE* instance, gssapi_auth_t* auth)
|
||||
@ -734,7 +734,9 @@ extern "C"
|
||||
NULL, /* Process finish. */
|
||||
NULL, /* Thread init. */
|
||||
NULL, /* Thread finish. */
|
||||
{{MXS_END_MODULE_PARAMS}}
|
||||
{
|
||||
{MXS_END_MODULE_PARAMS}
|
||||
}
|
||||
};
|
||||
|
||||
return &info;
|
||||
|
||||
@ -308,7 +308,9 @@ extern "C"
|
||||
NULL, /* Process finish. */
|
||||
NULL, /* Thread init. */
|
||||
NULL, /* Thread finish. */
|
||||
{{MXS_END_MODULE_PARAMS}}
|
||||
{
|
||||
{MXS_END_MODULE_PARAMS}
|
||||
}
|
||||
};
|
||||
|
||||
return &info;
|
||||
|
||||
@ -87,7 +87,9 @@ extern "C"
|
||||
NULL, /* Process finish. */
|
||||
NULL, /* Thread init. */
|
||||
NULL, /* Thread finish. */
|
||||
{{MXS_END_MODULE_PARAMS}}
|
||||
{
|
||||
{MXS_END_MODULE_PARAMS}
|
||||
}
|
||||
};
|
||||
|
||||
return &info;
|
||||
|
||||
@ -81,7 +81,9 @@ extern "C"
|
||||
NULL, /* Process finish. */
|
||||
NULL, /* Thread init. */
|
||||
NULL, /* Thread finish. */
|
||||
{{MXS_END_MODULE_PARAMS}}
|
||||
{
|
||||
{MXS_END_MODULE_PARAMS}
|
||||
}
|
||||
};
|
||||
|
||||
return &info;
|
||||
|
||||
@ -788,7 +788,7 @@ bool check_service_permissions(SERVICE* service)
|
||||
{
|
||||
if (rcap_type_required(service_get_capabilities(service), RCAP_TYPE_NO_AUTH)
|
||||
|| config_get_global_options()->skip_permission_checks
|
||||
|| service->dbref == NULL) // No servers to check
|
||||
|| service->dbref == NULL) // No servers to check
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -110,7 +110,9 @@ extern "C"
|
||||
NULL, /* Process finish. */
|
||||
NULL, /* Thread init. */
|
||||
NULL, /* Thread finish. */
|
||||
{{MXS_END_MODULE_PARAMS}}
|
||||
{
|
||||
{MXS_END_MODULE_PARAMS}
|
||||
}
|
||||
};
|
||||
|
||||
return &info;
|
||||
|
||||
@ -187,7 +187,9 @@ extern "C"
|
||||
NULL, /* Process finish. */
|
||||
NULL, /* Thread init. */
|
||||
NULL, /* Thread finish. */
|
||||
{{MXS_END_MODULE_PARAMS}}
|
||||
{
|
||||
{MXS_END_MODULE_PARAMS}
|
||||
}
|
||||
};
|
||||
|
||||
return &info;
|
||||
|
||||
@ -301,7 +301,7 @@ void PamClientSession::get_pam_user_services(const DCB* dcb,
|
||||
*
|
||||
* @return Allocated packet
|
||||
* @see
|
||||
*https://dev.mysql.com/doc/internals/en/connection-phase-packets.html#packet-Protocol::AuthSwitchRequest
|
||||
* https://dev.mysql.com/doc/internals/en/connection-phase-packets.html#packet-Protocol::AuthSwitchRequest
|
||||
*/
|
||||
Buffer PamClientSession::create_auth_change_packet() const
|
||||
{
|
||||
|
||||
@ -106,7 +106,9 @@ extern "C"
|
||||
NULL, /* Process finish. */
|
||||
NULL, /* Thread init. */
|
||||
NULL, /* Thread finish. */
|
||||
{{MXS_END_MODULE_PARAMS}}
|
||||
{
|
||||
{MXS_END_MODULE_PARAMS}
|
||||
}
|
||||
};
|
||||
|
||||
return &info;
|
||||
|
||||
Reference in New Issue
Block a user