summaryrefslogtreecommitdiffstats
path: root/udp514-journal.c
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2019-09-06 11:55:34 +0200
committerGravatar Christian Hesse <mail@eworm.de>2019-09-06 11:55:34 +0200
commitef84b7645fbf537eab8ecf49e88264ae6d013fad (patch)
tree9f50f5b920a04c1ee9bb263f3c07a3e49989a3cb /udp514-journal.c
parent1ba45ef26597b82aba81ab20f63a1cb2320dd15e (diff)
downloadudp514-journal-ef84b7645fbf537eab8ecf49e88264ae6d013fad.tar.gz
udp514-journal-ef84b7645fbf537eab8ecf49e88264ae6d013fad.tar.zst
move declarations to loop
Diffstat (limited to 'udp514-journal.c')
-rw-r--r--udp514-journal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/udp514-journal.c b/udp514-journal.c
index 9a1db8b..b73f992 100644
--- a/udp514-journal.c
+++ b/udp514-journal.c
@@ -9,9 +9,7 @@
int main(int argc, char **argv) {
int sock;
- socklen_t len;
struct sockaddr_in cliAddr, servAddr;
- char buffer[BUFFER_SIZE];
const int opt_val = 1;
unsigned int count = 0;
@@ -36,6 +34,8 @@ int main(int argc, char **argv) {
/* server loop */
while (1) {
+ char buffer[BUFFER_SIZE];
+ socklen_t len;
char * match;
CODE * pri;
uint8_t priority = LOG_INFO;