fix compiler warnings
This commit is contained in:
parent
825caa14de
commit
ed8b768c4a
@ -277,7 +277,6 @@ static RC_STRINGLIST *rc_config_kcl(RC_STRINGLIST *config)
|
|||||||
char *tmp = NULL;
|
char *tmp = NULL;
|
||||||
char *value = NULL;
|
char *value = NULL;
|
||||||
size_t varlen = 0;
|
size_t varlen = 0;
|
||||||
size_t len = 0;
|
|
||||||
|
|
||||||
overrides = rc_stringlist_new();
|
overrides = rc_stringlist_new();
|
||||||
|
|
||||||
@ -295,7 +294,6 @@ static RC_STRINGLIST *rc_config_kcl(RC_STRINGLIST *config)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (value != NULL) {
|
if (value != NULL) {
|
||||||
len = varlen + strlen(value) + 2;
|
|
||||||
xasprintf(&tmp, "%s=%s", override->value, value);
|
xasprintf(&tmp, "%s=%s", override->value, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -133,7 +133,7 @@ void broadcast(char *text)
|
|||||||
char *p;
|
char *p;
|
||||||
char *line = NULL;
|
char *line = NULL;
|
||||||
struct sigaction sa;
|
struct sigaction sa;
|
||||||
int fd;
|
volatile int fd;
|
||||||
FILE *tp;
|
FILE *tp;
|
||||||
int flags;
|
int flags;
|
||||||
char *term = NULL;
|
char *term = NULL;
|
||||||
|
@ -160,9 +160,7 @@ static void sleep_no_interrupt(int seconds)
|
|||||||
|
|
||||||
static void stop_shutdown(int sig)
|
static void stop_shutdown(int sig)
|
||||||
{
|
{
|
||||||
/* use the sig parameter so the compiler will not complain */
|
(void) sig;
|
||||||
if (sig == SIGINT)
|
|
||||||
;
|
|
||||||
unlink(nologin_file);
|
unlink(nologin_file);
|
||||||
unlink(shutdown_pid);
|
unlink(shutdown_pid);
|
||||||
einfo("Shutdown canceled");
|
einfo("Shutdown canceled");
|
||||||
|
@ -267,7 +267,7 @@ static char *make_cmdline(char **argv)
|
|||||||
return cmdline;
|
return cmdline;
|
||||||
}
|
}
|
||||||
|
|
||||||
static pid_t exec_command(char *cmd)
|
static pid_t exec_command(const char *cmd)
|
||||||
{
|
{
|
||||||
char *file;
|
char *file;
|
||||||
pid_t pid = -1;
|
pid_t pid = -1;
|
||||||
@ -510,7 +510,6 @@ static void supervisor(char *exec, char **argv)
|
|||||||
int healthcheck_respawn;
|
int healthcheck_respawn;
|
||||||
int i;
|
int i;
|
||||||
int nkilled;
|
int nkilled;
|
||||||
int ready;
|
|
||||||
int sig_send;
|
int sig_send;
|
||||||
pid_t health_pid;
|
pid_t health_pid;
|
||||||
pid_t wait_pid;
|
pid_t wait_pid;
|
||||||
|
Loading…
Reference in New Issue
Block a user