fix leading whitespace
Clean up code indented with mixed tabs and spaces. No actual code changes. This fixes #280.
This commit is contained in:
parent
846e460075
commit
3e00fbc9b0
@ -616,11 +616,11 @@ mtime_check(const char *source, const char *target, bool newer,
|
||||
return false;
|
||||
mtime = buf.st_mtime;
|
||||
|
||||
retval = deep_mtime_check(target,newer,&mtime,file);
|
||||
if (rel) {
|
||||
*rel = mtime;
|
||||
}
|
||||
return retval;
|
||||
retval = deep_mtime_check(target,newer,&mtime,file);
|
||||
if (rel) {
|
||||
*rel = mtime;
|
||||
}
|
||||
return retval;
|
||||
}
|
||||
|
||||
bool
|
||||
|
@ -423,7 +423,7 @@ rc_conf_value(const char *setting)
|
||||
}
|
||||
|
||||
rc_conf = rc_config_directory(rc_conf);
|
||||
rc_conf = rc_config_kcl(rc_conf);
|
||||
rc_conf = rc_config_kcl(rc_conf);
|
||||
|
||||
/* Convert old uppercase to lowercase */
|
||||
TAILQ_FOREACH(s, rc_conf, entries) {
|
||||
|
@ -1120,7 +1120,7 @@ int main(int argc, char **argv)
|
||||
char *dir, *save = NULL, *saveLnk = NULL;
|
||||
char *pidstr = NULL;
|
||||
size_t l = 0, ll;
|
||||
const char *file;
|
||||
const char *file;
|
||||
struct stat stbuf;
|
||||
|
||||
/* Show help if insufficient args */
|
||||
|
@ -111,8 +111,8 @@ static void create_nologin(int mins)
|
||||
t += 60 * mins;
|
||||
|
||||
if ((fp = fopen(nologin_file, "w")) != NULL) {
|
||||
fprintf(fp, "\rThe system is going down on %s\r\n", ctime(&t));
|
||||
fclose(fp);
|
||||
fprintf(fp, "\rThe system is going down on %s\r\n", ctime(&t));
|
||||
fclose(fp);
|
||||
}
|
||||
}
|
||||
|
||||
@ -122,7 +122,7 @@ static void create_nologin(int mins)
|
||||
static void send_cmd(const char *cmd)
|
||||
{
|
||||
FILE *fifo;
|
||||
size_t ignored;
|
||||
size_t ignored;
|
||||
|
||||
if (do_dryrun) {
|
||||
einfo("Would send %s to init", cmd);
|
||||
|
@ -244,7 +244,7 @@ print_stacked_services(const char *runlevel)
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
RC_SERVICE state;
|
||||
RC_STRING *s, *l, *t, *level;
|
||||
RC_STRING *s, *l, *t, *level;
|
||||
bool show_all = false;
|
||||
char *p, *runlevel = NULL;
|
||||
int opt, retval = 0;
|
||||
|
@ -43,8 +43,8 @@ void log_wtmp(const char *user, const char *id, pid_t pid, int type,
|
||||
strncpy(utmp.ut_id , id , sizeof(utmp.ut_id ));
|
||||
strncpy(utmp.ut_line, line, sizeof(utmp.ut_line));
|
||||
|
||||
/* Put the OS version in place of the hostname */
|
||||
if (uname(&uname_buf) == 0)
|
||||
/* Put the OS version in place of the hostname */
|
||||
if (uname(&uname_buf) == 0)
|
||||
strncpy(utmp.ut_host, uname_buf.release, sizeof(utmp.ut_host));
|
||||
|
||||
updwtmp(WTMP_FILE, &utmp);
|
||||
|
@ -547,7 +547,7 @@ int main(int argc, char **argv)
|
||||
} else if (name) {
|
||||
*--argv = name;
|
||||
++argc;
|
||||
} else if (exec) {
|
||||
} else if (exec) {
|
||||
*--argv = exec;
|
||||
++argc;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user