]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
misc-progs: syslogdctrl: Fix data type of protocol variable
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 30 Nov 2017 14:36:28 +0000 (14:36 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 30 Nov 2017 14:36:28 +0000 (14:36 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/misc-progs/syslogdctrl.c

index 83727162efb74cc9696d61a0234370f4a8fa6877..c65a1f0d2a4a992dec50501f7839d70f84c96314 100644 (file)
 
 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];
    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);