diff options
author | Roy Marples <roy@marples.name> | 2007-04-19 14:54:35 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-04-19 14:54:35 +0000 |
commit | 2569e85579bc5c7d676865b386398119f04a5912 (patch) | |
tree | 41724e54856c9323b53428e49258f56f1102c0ed /src/librc-depend.c | |
parent | 3ed60d52026c484dce2d1856ea3bb893b8ee7d92 (diff) |
strdup -> rc_xstrdup
Diffstat (limited to 'src/librc-depend.c')
-rw-r--r-- | src/librc-depend.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/librc-depend.c b/src/librc-depend.c index 1c3c764c..6aecd04f 100644 --- a/src/librc-depend.c +++ b/src/librc-depend.c @@ -109,7 +109,7 @@ rc_depinfo_t *rc_load_deptree (void) depinfo = depinfo->next; } memset (depinfo, 0, sizeof (rc_depinfo_t)); - depinfo->service = strdup (e); + depinfo->service = rc_xstrdup (e); deptype = NULL; continue; } @@ -138,7 +138,7 @@ rc_depinfo_t *rc_load_deptree (void) } if (! deptype->type) - deptype->type = strdup (type); + deptype->type = rc_xstrdup (type); deptype->services = rc_strlist_addsort (deptype->services, e); } @@ -661,7 +661,7 @@ int rc_update_deptree (bool force) depinfo = last_depinfo->next; } memset (depinfo, 0, sizeof (rc_depinfo_t)); - depinfo->service = strdup (service); + depinfo->service = rc_xstrdup (service); } /* We may not have any depends */ @@ -689,7 +689,7 @@ int rc_update_deptree (bool force) deptype = last_deptype->next; } memset (deptype, 0, sizeof (rc_deptype_t)); - deptype->type = strdup (type); + deptype->type = rc_xstrdup (type); } /* Now add each depend to our type. @@ -730,7 +730,7 @@ int rc_update_deptree (bool force) last_depinfo->next = rc_xmalloc (sizeof (rc_depinfo_t)); di = last_depinfo->next; memset (di, 0, sizeof (rc_depinfo_t)); - di->service = strdup (service); + di->service = rc_xstrdup (service); } } } @@ -779,7 +779,7 @@ int rc_update_deptree (bool force) dt = last_deptype->next; } memset (dt, 0, sizeof (rc_deptype_t)); - dt->type = strdup (deppairs[i].addto); + dt->type = rc_xstrdup (deppairs[i].addto); } already_added = false; |