From b1fcf4ce9ce1a70c302ad97f9905b966674e7590 Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Mon, 17 Jan 2011 08:41:02 +0000 Subject: Style fix: "if (" not "if(". --- src/librc/librc.c | 10 +++++----- src/rc/rc-depend.c | 4 ++-- src/rc/rc.c | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) (limited to 'src') diff --git a/src/librc/librc.c b/src/librc/librc.c index 8d661b12..a5b0bbdb 100644 --- a/src/librc/librc.c +++ b/src/librc/librc.c @@ -201,16 +201,16 @@ file_regex(const char *file, const char *regex) const char * rc_sys_v2(void) { -#define __STRING_SWITCH(x) { char* __string_switch = x; if(false) {} -#define __STRING_CASE(y) else if(strcmp(__string_switch,y) == 0) +#define __STRING_SWITCH(x) { char* __string_switch = x; if (false) {} +#define __STRING_CASE(y) else if (strcmp(__string_switch,y) == 0) #define __STRING_SWITCH_END() } char* systype = rc_conf_value("rc_sys"); /* New sys identification code */ - if(systype) { + if (systype) { char* s = systype; // Convert to uppercase while(s && *s) { - if(islower((unsigned char)*s)) + if (islower((unsigned char)*s)) *s = toupper((unsigned char)*s); s++; } @@ -290,7 +290,7 @@ librc_hidden_def(rc_sys_v1) const char * rc_sys(void) { - if(rc_conf_value("rc_sys")) { + if (rc_conf_value("rc_sys")) { return rc_sys_v2(); } else { return rc_sys_v1(); diff --git a/src/rc/rc-depend.c b/src/rc/rc-depend.c index 50227cc5..3d00d1a7 100644 --- a/src/rc/rc-depend.c +++ b/src/rc/rc-depend.c @@ -177,8 +177,8 @@ rc_depend(int argc, char **argv) } } - if(deptree_file) { - if(!(deptree = rc_deptree_load_file(deptree_file))) + if (deptree_file) { + if (!(deptree = rc_deptree_load_file(deptree_file))) eerrorx("failed to load deptree"); } else { if (!(deptree = _rc_deptree_load(update, NULL))) diff --git a/src/rc/rc.c b/src/rc/rc.c index 14be8683..bdda2ef6 100644 --- a/src/rc/rc.c +++ b/src/rc/rc.c @@ -895,12 +895,12 @@ main(int argc, char **argv) case 'S': if (rc_conf_value("rc_sys")) { bootlevel = rc_sys_v2(); - if(bootlevel) + if (bootlevel) printf("%s\n", bootlevel); } else { ewarn("WARNING: rc_sys not defined in rc.conf. Falling back to automatic detection"); bootlevel = rc_sys_v1(); - if(bootlevel) + if (bootlevel) printf("%s\n", bootlevel); } exit(EXIT_SUCCESS); -- cgit v1.2.3