summaryrefslogtreecommitdiffabout
path: root/src/process.c
Side-by-side diff
Diffstat (limited to 'src/process.c') (more/less context) (ignore whitespace changes)
-rw-r--r--src/process.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/process.c b/src/process.c
index e41709d..200d987 100644
--- a/src/process.c
+++ b/src/process.c
@@ -18,25 +18,25 @@
struct spool_list
{
struct spool_list *next;
struct spool spool;
};
static struct spool_list *spool_list;
void
register_spool (struct spool *spool)
{
- struct spool_list *sp = xmalloc (sizeof *sp);
+ struct spool_list *sp = grecs_malloc (sizeof *sp);
sp->spool = *spool;
sp->next = spool_list;
spool_list = sp;
}
static int
spool_check_alias (struct spool *spool, const char *name)
{
if (spool->aliases && grecs_list_locate (spool->aliases, (char*) name))
return 1;
return 0;
}
@@ -104,25 +104,25 @@ parse_file_name (const char *name, struct file_info *finfo)
{ SUF_DIR, SUF_DIR_LEN, file_directive },
{ "", 0, file_dist }
};
int i;
unsigned len = strlen (name);
for (i = 0; i < sizeof suftab / sizeof suftab[0]; i++)
{
if (len >= suftab[i].len
&& memcmp (name + len - suftab[i].len,
suftab[i].suf, suftab[i].len) == 0)
{
- finfo->name = xstrdup (name);
+ finfo->name = grecs_strdup (name);
finfo->type = suftab[i].type;
finfo->root_len = len - suftab[i].len;
return;
}
}
abort (); /* should not happen */
}
int
match_uid_p (uid_t uid, int uc, uid_t *uv)
{
int i;

Return to:

Send suggestions and report system problems to the System administrator.