summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mrinfo
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2003-11-26 01:17:12 +0000
committermillert <millert@openbsd.org>2003-11-26 01:17:12 +0000
commit40443a2f670b625c2ac672c76675fc405c6f822f (patch)
tree8df2c2f876f01abd08b74dd06cf7aade310d4fa5 /usr.sbin/mrinfo
parentThis is ISO C, use string concatenation, instead of bogus use of __CONCAT. (diff)
downloadwireguard-openbsd-40443a2f670b625c2ac672c76675fc405c6f822f.tar.xz
wireguard-openbsd-40443a2f670b625c2ac672c76675fc405c6f822f.zip
Replace log() with logit() since ISO C reserves log() for the math
library and gcc 3.x will complain. Replacement name taken from NetBSD. espie@ OK.
Diffstat (limited to 'usr.sbin/mrinfo')
-rw-r--r--usr.sbin/mrinfo/mrinfo.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/mrinfo/mrinfo.c b/usr.sbin/mrinfo/mrinfo.c
index b528415b637..895a933cf5a 100644
--- a/usr.sbin/mrinfo/mrinfo.c
+++ b/usr.sbin/mrinfo/mrinfo.c
@@ -76,7 +76,7 @@
#ifndef lint
static char rcsid[] =
- "@(#) $OpenBSD: mrinfo.c,v 1.17 2003/08/19 19:09:45 deraadt Exp $";
+ "@(#) $OpenBSD: mrinfo.c,v 1.18 2003/11/26 01:17:12 millert Exp $";
/* original rcsid:
"@(#) Header: mrinfo.c,v 1.6 93/04/08 15:14:16 van Exp (LBL)";
*/
@@ -133,7 +133,7 @@ inet_name(u_int32_t addr)
* worse, terminate the program.
*/
void
-log(int severity, int syserr, char *format, ...)
+logit(int severity, int syserr, char *format, ...)
{
va_list ap;
@@ -443,7 +443,7 @@ main(int argc, char *argv[])
perror("select");
continue;
} else if (count == 0) {
- log(LOG_DEBUG, 0,
+ logit(LOG_DEBUG, 0,
"Timed out receiving neighbor lists");
if (++tries > retries)
break;
@@ -469,7 +469,7 @@ main(int argc, char *argv[])
}
if (recvlen < sizeof(struct ip)) {
- log(LOG_WARNING, 0,
+ logit(LOG_WARNING, 0,
"packet too short (%u bytes) for IP header",
recvlen);
continue;
@@ -482,7 +482,7 @@ main(int argc, char *argv[])
iphdrlen = ip->ip_hl << 2;
ipdatalen = ntohs(ip->ip_len);
if (iphdrlen + ipdatalen != recvlen) {
- log(LOG_WARNING, 0,
+ logit(LOG_WARNING, 0,
"packet shorter (%u bytes) than "
"hdr+data length (%u+%u)",
recvlen, iphdrlen, ipdatalen);
@@ -492,7 +492,7 @@ main(int argc, char *argv[])
group = igmp->igmp_group.s_addr;
igmpdatalen = ipdatalen - IGMP_MINLEN;
if (igmpdatalen < 0) {
- log(LOG_WARNING, 0,
+ logit(LOG_WARNING, 0,
"IP data field too short (%u bytes) "
"for IGMP, from %s",
ipdatalen, inet_fmt(src, s1));