]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
Revert "misc-progs: syslogdctrl: Fix data type of protocol variable"
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 20 Jan 2018 14:45:10 +0000 (14:45 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 20 Jan 2018 14:45:10 +0000 (14:45 +0000)
This reverts commit b269686f885757f5b251f04e50c3e87d2aebaf64.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/misc-progs/syslogdctrl.c

index c65a1f0d2a4a992dec50501f7839d70f84c96314..83727162efb74cc9696d61a0234370f4a8fa6877 100644 (file)
 
 int main(void)
 {
-   char buffer[STRING_SIZE], command[STRING_SIZE], hostname[STRING_SIZE];
-   const char* protocol;
+   char buffer[STRING_SIZE], command[STRING_SIZE], hostname[STRING_SIZE], protocol[STRING_SIZE];
    char varmessages[STRING_SIZE], asynclog[STRING_SIZE];
    int config_fd,rc,fd,pid;
    struct stat st;
    struct keyvalue *kv = NULL;
    memset(buffer, 0, STRING_SIZE);
    memset(hostname, 0, STRING_SIZE);
+   memset(protocol, 0, STRING_SIZE);
    memset(varmessages, 0, STRING_SIZE);
    memset(asynclog, 0, STRING_SIZE);