aboutsummaryrefslogtreecommitdiff
path: root/ident/provider.c
diff options
context:
space:
mode:
Diffstat (limited to 'ident/provider.c')
-rw-r--r--ident/provider.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ident/provider.c b/ident/provider.c
index dd7fc3d..8b9f076 100644
--- a/ident/provider.c
+++ b/ident/provider.c
@@ -1,5 +1,5 @@
/* This file is part of GNU Pies.
- Copyright (C) 2015 Sergey Poznyakoff
+ Copyright (C) 2015-2016 Sergey Poznyakoff
GNU Pies is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -27,7 +27,7 @@ idmech_copy (void *a, void *b)
pies_identity_mechanism_t mb = b;
*ma = *mb;
- ma->name = xstrdup (mb->name);
+ ma->name = grecs_strdup (mb->name);
return 0;
}
@@ -38,14 +38,14 @@ pies_identity_mechanism_register (pies_identity_mechanism_t mech)
if (!idmech_symtab)
{
- idmech_symtab = grecs_symtab_create (sizeof(*mech),
+ idmech_symtab = grecs_symtab_create (sizeof (*mech),
NULL,
NULL,
idmech_copy,
NULL,
NULL);
if (!idmech_symtab)
- grecs_alloc_die();
+ grecs_alloc_die ();
}
install = 1;
@@ -135,8 +135,8 @@ pies_config_provider (struct grecs_node *node)
return 1;
}
- prov = xcalloc (1, sizeof (*prov));
- prov->name = xstrdup (name);
+ prov = grecs_calloc (1, sizeof (*prov));
+ prov->name = grecs_strdup (name);
prov->mech = mp;
prov->locus = node->locus;

Return to:

Send suggestions and report system problems to the System administrator.