LS_DIRS -> LS_DIR

This commit is contained in:
Roy Marples 2007-10-04 17:02:44 +00:00
parent 15fde9a796
commit af5525f634
3 changed files with 3 additions and 3 deletions

View File

@ -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))

View File

@ -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)

View File

@ -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