Style fix: "char *foo" not "char* foo".

This commit is contained in:
Robin H. Johnson 2011-01-17 08:46:41 +00:00
parent c0a3e25d48
commit b2d0656814
4 changed files with 8 additions and 8 deletions

View File

@ -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;

View File

@ -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 */

View File

@ -62,7 +62,7 @@
static RC_STRINGLIST *rc_conf = NULL;
extern char** environ;
extern char **environ;
#ifdef DEBUG_MEMORY
static void

View File

@ -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'",