aboutsummaryrefslogtreecommitdiff
path: root/src/mountinfo.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-10-08 11:11:21 +0000
committerRoy Marples <roy@marples.name>2007-10-08 11:11:21 +0000
commita89ceb7e2c994e2a3907d9c906d99021a6e15788 (patch)
tree5725e344e99804953472a29598eb8c3e04d95c7a /src/mountinfo.c
parente7dab9bb91344476603cc01a9db95c891e01085d (diff)
Punt rc_ from xstrdup, xalloc, xrealloc and exists as they're not in librc anymore
Diffstat (limited to 'src/mountinfo.c')
-rw-r--r--src/mountinfo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mountinfo.c b/src/mountinfo.c
index be31012a..25e83ca5 100644
--- a/src/mountinfo.c
+++ b/src/mountinfo.c
@@ -173,7 +173,7 @@ static char **find_mounts (struct args *args)
for (o = optnames; flags && o->o_opt; o++) {
if (flags & o->o_opt) {
if (! options)
- options = rc_xstrdup (o->o_name);
+ options = strdup (o->o_name);
else {
char *tmp = NULL;
asprintf (&tmp, "%s,%s", options, o->o_name);
@@ -232,7 +232,7 @@ static char **find_mounts (struct args *args)
static regex_t *get_regex (const char *string)
{
- regex_t *reg = rc_xmalloc (sizeof (regex_t));
+ regex_t *reg = xmalloc (sizeof (regex_t));
int result;
char buffer[256];