aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-10-04 17:02:44 +0000
committerRoy Marples <roy@marples.name>2007-10-04 17:02:44 +0000
commitaf5525f6342c6ceda5913d2f6675d72ea8501ef3 (patch)
tree58f6e010f71232e1892706a12a84b778aa225384 /src
parent15fde9a796a45999b2fdebebbe8862f33cf4965b (diff)
LS_DIRS -> LS_DIR
Diffstat (limited to 'src')
-rw-r--r--src/librc-misc.c2
-rw-r--r--src/librc.c2
-rw-r--r--src/rc.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/librc-misc.c b/src/librc-misc.c
index 193b77c0..936fc730 100644
--- a/src/librc-misc.c
+++ b/src/librc-misc.c
@@ -159,7 +159,7 @@ char **rc_ls_dir (const char *dir, int options)
d->d_name[l - 1] == 'h')
continue;
}
- if (options & RC_LS_DIRS) {
+ if (options & RC_LS_DIR) {
struct stat buf;
if (stat (d->d_name, &buf) == 0 && ! S_ISDIR (buf.st_mode))
diff --git a/src/librc.c b/src/librc.c
index 851e784d..3a3b53b0 100644
--- a/src/librc.c
+++ b/src/librc.c
@@ -68,7 +68,7 @@ librc_hidden_def(rc_runlevel_stopping)
char **rc_runlevel_list (void)
{
- return (rc_ls_dir (RC_RUNLEVELDIR, RC_LS_DIRS));
+ return (rc_ls_dir (RC_RUNLEVELDIR, RC_LS_DIR));
}
librc_hidden_def(rc_runlevel_list)
diff --git a/src/rc.h b/src/rc.h
index 7be9849b..ddd54c67 100644
--- a/src/rc.h
+++ b/src/rc.h
@@ -461,7 +461,7 @@ bool rc_env_bool (const char *variable);
/*! @name rc_ls_dir options */
/*! Ensure that an init.d service exists for each file returned */
#define RC_LS_INITD 0x01
-#define RC_LS_DIRS 0x02
+#define RC_LS_DIR 0x02
/*! Return a NULL terminted sorted list of the contents of the directory
* @param dir to list