diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2011-01-17 08:41:02 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2011-01-17 08:41:02 +0000 |
commit | b1fcf4ce9ce1a70c302ad97f9905b966674e7590 (patch) | |
tree | 34f074fb6a7e40a993ddd40d3d426a387d27f5f3 /src/librc | |
parent | 6804edfc85c96fbda043ef9dd5d90122165bd32a (diff) |
Style fix: "if (" not "if(".
Diffstat (limited to 'src/librc')
-rw-r--r-- | src/librc/librc.c | 10 |
1 files changed, 5 insertions, 5 deletions
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(); |