mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-05-08 14:06:10 +02:00
misc-progs: syslogdctrl: Fix data type of protocol variable
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -32,14 +32,14 @@
|
|||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
char buffer[STRING_SIZE], command[STRING_SIZE], hostname[STRING_SIZE], protocol[STRING_SIZE];
|
char buffer[STRING_SIZE], command[STRING_SIZE], hostname[STRING_SIZE];
|
||||||
|
const char* protocol;
|
||||||
char varmessages[STRING_SIZE], asynclog[STRING_SIZE];
|
char varmessages[STRING_SIZE], asynclog[STRING_SIZE];
|
||||||
int config_fd,rc,fd,pid;
|
int config_fd,rc,fd,pid;
|
||||||
struct stat st;
|
struct stat st;
|
||||||
struct keyvalue *kv = NULL;
|
struct keyvalue *kv = NULL;
|
||||||
memset(buffer, 0, STRING_SIZE);
|
memset(buffer, 0, STRING_SIZE);
|
||||||
memset(hostname, 0, STRING_SIZE);
|
memset(hostname, 0, STRING_SIZE);
|
||||||
memset(protocol, 0, STRING_SIZE);
|
|
||||||
memset(varmessages, 0, STRING_SIZE);
|
memset(varmessages, 0, STRING_SIZE);
|
||||||
memset(asynclog, 0, STRING_SIZE);
|
memset(asynclog, 0, STRING_SIZE);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user