aboutsummaryrefslogtreecommitdiff
path: root/src/librc-depend.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-04-05 15:01:09 +0000
committerRoy Marples <roy@marples.name>2007-04-05 15:01:09 +0000
commit308042c87bd920d787265f1854bf1695bdbab8e4 (patch)
treed82ee57f02e53c08bd5d66909d326942a4bb9fba /src/librc-depend.c
parent6fb700e52c1684637dcc77a89ea2fc7a1b2050b1 (diff)
We now compile on OpenBSD (no idea if it works or not yet)
Diffstat (limited to 'src/librc-depend.c')
-rw-r--r--src/librc-depend.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/librc-depend.c b/src/librc-depend.c
index 0da93aa5..707b954a 100644
--- a/src/librc-depend.c
+++ b/src/librc-depend.c
@@ -489,7 +489,8 @@ char **rc_order_services (rc_depinfo_t *deptree, const char *runlevel,
/* If we're not the boot runlevel then add that too */
if (strcmp (runlevel, RC_LEVEL_BOOT) != 0)
{
- char *path = rc_strcatpaths (RC_RUNLEVELDIR, RC_LEVEL_BOOT, NULL);
+ char *path = rc_strcatpaths (RC_RUNLEVELDIR, RC_LEVEL_BOOT,
+ (char *) NULL);
list = rc_ls_dir (list, path, RC_LS_INITD);
free (path);
}
@@ -534,7 +535,7 @@ static bool is_newer_than (const char *file, const char *target)
bool newer = true;
STRLIST_FOREACH (targets, t, i)
{
- char *path = rc_strcatpaths (target, t, NULL);
+ char *path = rc_strcatpaths (target, t, (char *) NULL);
newer = is_newer_than (file, path);
free (path);
if (! newer)