diff options
Diffstat (limited to 'src/librc-misc.c')
-rw-r--r-- | src/librc-misc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/librc-misc.c b/src/librc-misc.c index 604c5518..69b717c8 100644 --- a/src/librc-misc.c +++ b/src/librc-misc.c @@ -237,7 +237,8 @@ char **rc_ls_dir (char **list, const char *dir, int options) if (options & RC_LS_INITD) { int l = strlen (d->d_name); - char *init = rc_strcatpaths (RC_INITDIR, d->d_name, NULL); + char *init = rc_strcatpaths (RC_INITDIR, d->d_name, + (char *) NULL); bool ok = rc_exists (init); free (init); if (! ok) @@ -283,7 +284,7 @@ bool rc_rm_dir (const char *pathname, bool top) { if (strcmp (d->d_name, ".") != 0 && strcmp (d->d_name, "..") != 0) { - char *tmp = rc_strcatpaths (pathname, d->d_name, NULL); + char *tmp = rc_strcatpaths (pathname, d->d_name, (char *) NULL); if (d->d_type == DT_DIR) { if (! rc_rm_dir (tmp, true)) |