fix leading whitespace

Clean up code indented with mixed tabs and spaces.
No actual code changes.

This fixes #280.
This commit is contained in:
philhofer 2018-12-27 10:06:01 -08:00 committed by William Hubbs
parent 846e460075
commit 3e00fbc9b0
7 changed files with 14 additions and 14 deletions

View File

@ -616,11 +616,11 @@ mtime_check(const char *source, const char *target, bool newer,
return false; return false;
mtime = buf.st_mtime; mtime = buf.st_mtime;
retval = deep_mtime_check(target,newer,&mtime,file); retval = deep_mtime_check(target,newer,&mtime,file);
if (rel) { if (rel) {
*rel = mtime; *rel = mtime;
} }
return retval; return retval;
} }
bool bool

View File

@ -423,7 +423,7 @@ rc_conf_value(const char *setting)
} }
rc_conf = rc_config_directory(rc_conf); 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 */ /* Convert old uppercase to lowercase */
TAILQ_FOREACH(s, rc_conf, entries) { TAILQ_FOREACH(s, rc_conf, entries) {

View File

@ -1120,7 +1120,7 @@ int main(int argc, char **argv)
char *dir, *save = NULL, *saveLnk = NULL; char *dir, *save = NULL, *saveLnk = NULL;
char *pidstr = NULL; char *pidstr = NULL;
size_t l = 0, ll; size_t l = 0, ll;
const char *file; const char *file;
struct stat stbuf; struct stat stbuf;
/* Show help if insufficient args */ /* Show help if insufficient args */

View File

@ -111,8 +111,8 @@ static void create_nologin(int mins)
t += 60 * mins; t += 60 * mins;
if ((fp = fopen(nologin_file, "w")) != NULL) { if ((fp = fopen(nologin_file, "w")) != NULL) {
fprintf(fp, "\rThe system is going down on %s\r\n", ctime(&t)); fprintf(fp, "\rThe system is going down on %s\r\n", ctime(&t));
fclose(fp); fclose(fp);
} }
} }
@ -122,7 +122,7 @@ static void create_nologin(int mins)
static void send_cmd(const char *cmd) static void send_cmd(const char *cmd)
{ {
FILE *fifo; FILE *fifo;
size_t ignored; size_t ignored;
if (do_dryrun) { if (do_dryrun) {
einfo("Would send %s to init", cmd); einfo("Would send %s to init", cmd);

View File

@ -244,7 +244,7 @@ print_stacked_services(const char *runlevel)
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
RC_SERVICE state; RC_SERVICE state;
RC_STRING *s, *l, *t, *level; RC_STRING *s, *l, *t, *level;
bool show_all = false; bool show_all = false;
char *p, *runlevel = NULL; char *p, *runlevel = NULL;
int opt, retval = 0; int opt, retval = 0;

View File

@ -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_id , id , sizeof(utmp.ut_id ));
strncpy(utmp.ut_line, line, sizeof(utmp.ut_line)); strncpy(utmp.ut_line, line, sizeof(utmp.ut_line));
/* Put the OS version in place of the hostname */ /* Put the OS version in place of the hostname */
if (uname(&uname_buf) == 0) if (uname(&uname_buf) == 0)
strncpy(utmp.ut_host, uname_buf.release, sizeof(utmp.ut_host)); strncpy(utmp.ut_host, uname_buf.release, sizeof(utmp.ut_host));
updwtmp(WTMP_FILE, &utmp); updwtmp(WTMP_FILE, &utmp);

View File

@ -547,7 +547,7 @@ int main(int argc, char **argv)
} else if (name) { } else if (name) {
*--argv = name; *--argv = name;
++argc; ++argc;
} else if (exec) { } else if (exec) {
*--argv = exec; *--argv = exec;
++argc; ++argc;
}; };