Format all sources with Uncrustify

Formatted all sources and manually tuned some files to make the code look
neater.
This commit is contained in:
Markus Mäkelä
2018-09-10 12:40:03 +03:00
parent edd5ddcc88
commit d11c78ad80
183 changed files with 1865 additions and 1695 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;
}

View File

@ -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;

View File

@ -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;

View File

@ -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
{

View File

@ -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;