aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorPhilippe Charnier <charnier@FreeBSD.org>2005-05-29 16:04:46 +0000
committerPhilippe Charnier <charnier@FreeBSD.org>2005-05-29 16:04:46 +0000
commit865059c8a88424279aaac8a736a2c3b0e0f6199b (patch)
treefa388e3298b5e5e075fecbef0a1b25715fcfc6aa /usr.bin
parentce2657c007ea5d2a9a1560e0c1391839293790ae (diff)
Notes
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/logger/logger.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/logger/logger.c b/usr.bin/logger/logger.c
index 3832752528b7..45665068b1ab 100644
--- a/usr.bin/logger/logger.c
+++ b/usr.bin/logger/logger.c
@@ -37,11 +37,12 @@ static const char copyright[] =
The Regents of the University of California. All rights reserved.\n";
#endif /* not lint */
-#ifndef lint
#if 0
+#ifndef lint
static char sccsid[] = "@(#)logger.c 8.1 (Berkeley) 6/6/93";
-#endif
#endif /* not lint */
+#endif
+
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
@@ -190,7 +191,7 @@ logmessage(int pri, char *host, char *buf)
hints.ai_socktype = SOCK_DGRAM;
error = getaddrinfo(host, "syslog", &hints, &res);
if (error == EAI_SERVICE) {
- warnx ("syslog/udp: unknown service"); /* not fatal */
+ warnx("syslog/udp: unknown service"); /* not fatal */
error = getaddrinfo(host, "514", &hints, &res);
}
if (error)
@@ -217,6 +218,7 @@ logmessage(int pri, char *host, char *buf)
if ((len = asprintf(&line, "<%d>%s", pri, buf)) == -1)
errx(1, "asprintf");
+ lsent = -1;
for (i = 0; i < nsock; ++i) {
lsent = sendto(socks[i].sock, line, len, 0,
(struct sockaddr *)&socks[i].addr,