summaryrefslogtreecommitdiffabout
path: root/src/config.c
Side-by-side diff
Diffstat (limited to 'src/config.c') (more/less context) (ignore whitespace changes)
-rw-r--r--src/config.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/config.c b/src/config.c
index df9816e..8250749 100644
--- a/src/config.c
+++ b/src/config.c
@@ -148,3 +148,3 @@ safe_file_name_alloc (const char *file_name)
{
- char *s = xstrdup (file_name);
+ char *s = grecs_strdup (file_name);
char *ns = safe_file_name (s);
@@ -551,4 +551,4 @@ cb_sql_host (enum grecs_callback_command cmd,
{
- pconn->socket = xstrdup (p);
- pconn->host = xstrdup ("localhost");
+ pconn->socket = grecs_strdup (p);
+ pconn->host = grecs_strdup ("localhost");
}
@@ -571,3 +571,3 @@ cb_sql_host (enum grecs_callback_command cmd,
/* Save host name */
- pconn->host = xstrdup (value->v.string);
+ pconn->host = grecs_strdup (value->v.string);
}
@@ -575,3 +575,3 @@ cb_sql_host (enum grecs_callback_command cmd,
else
- pconn->host = xstrdup (value->v.string);
+ pconn->host = grecs_strdup (value->v.string);
return 0;
@@ -596,3 +596,3 @@ cb_sql (enum grecs_callback_command cmd,
}
- pconn = xzalloc (sizeof (*pconn));
+ pconn = grecs_zalloc (sizeof (*pconn));
pconn->ident = strdup (value->v.string);
@@ -898,3 +898,3 @@ cb_notify_event (enum grecs_callback_command cmd,
case grecs_callback_section_begin:
- ntf = xzalloc (sizeof (*ntf));
+ ntf = grecs_zalloc (sizeof (*ntf));
*pdata = ntf;
@@ -986,3 +986,3 @@ cb_dictionary_params (enum grecs_callback_command cmd,
meth->parmc = size;
- meth->parmv = xcalloc (size + 1, sizeof (meth->parmv[0]));
+ meth->parmv = grecs_calloc (size + 1, sizeof (meth->parmv[0]));
@@ -995,3 +995,3 @@ cb_dictionary_params (enum grecs_callback_command cmd,
- meth->parmv[i] = xstrdup (vp->v.string);
+ meth->parmv[i] = grecs_strdup (vp->v.string);
}
@@ -1161,4 +1161,4 @@ cb_spool (enum grecs_callback_command cmd,
}
- spool = xzalloc (sizeof (*spool));
- spool->tag = xstrdup (value->v.string);
+ spool = grecs_zalloc (sizeof (*spool));
+ spool->tag = grecs_strdup (value->v.string);
spool->file_sweep_time = file_sweep_time;
@@ -1279,4 +1279,4 @@ cb_supp_groups (enum grecs_callback_command cmd,
- wydawca_supp_groups = xcalloc (wydawca_supp_groupc,
- sizeof (wydawca_supp_groups[0]));
+ wydawca_supp_groups = grecs_calloc (wydawca_supp_groupc,
+ sizeof (wydawca_supp_groups[0]));

Return to:

Send suggestions and report system problems to the System administrator.