diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2011-01-17 08:46:41 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2011-01-17 08:46:41 +0000 |
commit | b2d0656814c2afe9a05b3e130f0289b225a371ec (patch) | |
tree | 8a649f701aa5b51a2ee9a825d136711ba4b3d538 | |
parent | c0a3e25d482d52102c04765767ed82d81407e7e8 (diff) |
Style fix: "char *foo" not "char* foo".
-rw-r--r-- | src/librc/librc-daemon.c | 2 | ||||
-rw-r--r-- | src/librc/librc.c | 10 | ||||
-rw-r--r-- | src/rc/rc-misc.c | 2 | ||||
-rw-r--r-- | src/rc/rc-plugin.c | 2 |
4 files changed, 8 insertions, 8 deletions
diff --git a/src/librc/librc-daemon.c b/src/librc/librc-daemon.c index 6a45e0c0..dde62f91 100644 --- a/src/librc/librc-daemon.c +++ b/src/librc/librc-daemon.c @@ -283,7 +283,7 @@ _match_daemon(const char *path, const char *file, RC_STRINGLIST *match) } static RC_STRINGLIST * -_match_list(const char *exec, const char* const* argv, const char *pidfile) +_match_list(const char *exec, const char *const *argv, const char *pidfile) { RC_STRINGLIST *match = rc_stringlist_new(); int i = 0; diff --git a/src/librc/librc.c b/src/librc/librc.c index 0090036e..a8fc71a8 100644 --- a/src/librc/librc.c +++ b/src/librc/librc.c @@ -201,17 +201,17 @@ 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_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"); + char *systype = rc_conf_value("rc_sys"); /* New sys identification code */ if (systype) { - char* s = systype; + char *s = systype; /* Convert to uppercase */ while (s && *s) { - if (islower((unsigned char)*s)) - *s = toupper((unsigned char)*s); + if (islower((unsigned char) *s)) + *s = toupper((unsigned char) *s); s++; } /* Now do detection */ diff --git a/src/rc/rc-misc.c b/src/rc/rc-misc.c index 92be3b8a..a7b4e2d8 100644 --- a/src/rc/rc-misc.c +++ b/src/rc/rc-misc.c @@ -62,7 +62,7 @@ static RC_STRINGLIST *rc_conf = NULL; -extern char** environ; +extern char **environ; #ifdef DEBUG_MEMORY static void diff --git a/src/rc/rc-plugin.c b/src/rc/rc-plugin.c index 6f07471d..d82e9a92 100644 --- a/src/rc/rc-plugin.c +++ b/src/rc/rc-plugin.c @@ -105,7 +105,7 @@ rc_plugin_load(void) continue; } - fptr = (int (*)(RC_HOOK, const char*)) + fptr = (int (*)(RC_HOOK, const char *)) dlfunc(h, RC_PLUGIN_HOOK); if (fptr == NULL) { eerror("%s: cannot find symbol `%s'", |