Style fix: "char *foo" not "char* foo".
This commit is contained in:
parent
c0a3e25d48
commit
b2d0656814
@ -283,7 +283,7 @@ _match_daemon(const char *path, const char *file, RC_STRINGLIST *match)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static RC_STRINGLIST *
|
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();
|
RC_STRINGLIST *match = rc_stringlist_new();
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
@ -201,17 +201,17 @@ file_regex(const char *file, const char *regex)
|
|||||||
const char *
|
const char *
|
||||||
rc_sys_v2(void)
|
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_CASE(y) else if (strcmp(__string_switch,y) == 0)
|
||||||
#define __STRING_SWITCH_END() }
|
#define __STRING_SWITCH_END() }
|
||||||
char* systype = rc_conf_value("rc_sys");
|
char *systype = rc_conf_value("rc_sys");
|
||||||
/* New sys identification code */
|
/* New sys identification code */
|
||||||
if (systype) {
|
if (systype) {
|
||||||
char* s = systype;
|
char *s = systype;
|
||||||
/* Convert to uppercase */
|
/* Convert to uppercase */
|
||||||
while (s && *s) {
|
while (s && *s) {
|
||||||
if (islower((unsigned char)*s))
|
if (islower((unsigned char) *s))
|
||||||
*s = toupper((unsigned char)*s);
|
*s = toupper((unsigned char) *s);
|
||||||
s++;
|
s++;
|
||||||
}
|
}
|
||||||
/* Now do detection */
|
/* Now do detection */
|
||||||
|
@ -62,7 +62,7 @@
|
|||||||
|
|
||||||
static RC_STRINGLIST *rc_conf = NULL;
|
static RC_STRINGLIST *rc_conf = NULL;
|
||||||
|
|
||||||
extern char** environ;
|
extern char **environ;
|
||||||
|
|
||||||
#ifdef DEBUG_MEMORY
|
#ifdef DEBUG_MEMORY
|
||||||
static void
|
static void
|
||||||
|
@ -105,7 +105,7 @@ rc_plugin_load(void)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
fptr = (int (*)(RC_HOOK, const char*))
|
fptr = (int (*)(RC_HOOK, const char *))
|
||||||
dlfunc(h, RC_PLUGIN_HOOK);
|
dlfunc(h, RC_PLUGIN_HOOK);
|
||||||
if (fptr == NULL) {
|
if (fptr == NULL) {
|
||||||
eerror("%s: cannot find symbol `%s'",
|
eerror("%s: cannot find symbol `%s'",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user