mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-27 19:11:16 +00:00
util: authconfig: Use conteporary and consistent header style
Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Jonathon Jongsma <jjongsma@redhat.com>
This commit is contained in:
parent
5cb0e7bec2
commit
eb21551e21
@ -35,7 +35,8 @@ struct _virAuthConfig {
|
||||
|
||||
VIR_LOG_INIT("util.authconfig");
|
||||
|
||||
virAuthConfig *virAuthConfigNew(const char *path)
|
||||
virAuthConfig *
|
||||
virAuthConfigNew(const char *path)
|
||||
{
|
||||
g_autoptr(virAuthConfig) auth = g_new0(virAuthConfig, 1);
|
||||
|
||||
@ -51,9 +52,10 @@ virAuthConfig *virAuthConfigNew(const char *path)
|
||||
}
|
||||
|
||||
|
||||
virAuthConfig *virAuthConfigNewData(const char *path,
|
||||
const char *data,
|
||||
size_t len)
|
||||
virAuthConfig *
|
||||
virAuthConfigNewData(const char *path,
|
||||
const char *data,
|
||||
size_t len)
|
||||
{
|
||||
g_autoptr(virAuthConfig) auth = g_new0(virAuthConfig, 1);
|
||||
|
||||
@ -69,7 +71,8 @@ virAuthConfig *virAuthConfigNewData(const char *path,
|
||||
}
|
||||
|
||||
|
||||
void virAuthConfigFree(virAuthConfig *auth)
|
||||
void
|
||||
virAuthConfigFree(virAuthConfig *auth)
|
||||
{
|
||||
if (!auth)
|
||||
return;
|
||||
@ -80,11 +83,12 @@ void virAuthConfigFree(virAuthConfig *auth)
|
||||
}
|
||||
|
||||
|
||||
int virAuthConfigLookup(virAuthConfig *auth,
|
||||
const char *service,
|
||||
const char *hostname,
|
||||
const char *credname,
|
||||
char **value)
|
||||
int
|
||||
virAuthConfigLookup(virAuthConfig *auth,
|
||||
const char *service,
|
||||
const char *hostname,
|
||||
const char *credname,
|
||||
char **value)
|
||||
{
|
||||
g_autofree char *authgroup = NULL;
|
||||
g_autofree char *credgroup = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user