diff options
author | Darren Tucker <dtucker@cvs.openbsd.org> | 2004-07-11 03:05:51 +0000 |
---|---|---|
committer | Darren Tucker <dtucker@cvs.openbsd.org> | 2004-07-11 03:05:51 +0000 |
commit | b8ef89e7f0123d7116e107a465c05f1fb210dc29 (patch) | |
tree | 08405e2536d763e18d6ac044519cb15b49da00b9 /usr.sbin/ntpd/log.c | |
parent | 71e3df895b17d68f1ba03f499506e23449bfc760 (diff) |
Use SA_LEN(sa) instead of sa->sa_len; ok henning@
Diffstat (limited to 'usr.sbin/ntpd/log.c')
-rw-r--r-- | usr.sbin/ntpd/log.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ntpd/log.c b/usr.sbin/ntpd/log.c index e621fdd911c..40acc044dff 100644 --- a/usr.sbin/ntpd/log.c +++ b/usr.sbin/ntpd/log.c @@ -1,4 +1,4 @@ -/* $OpenBSD: log.c,v 1.4 2004/07/08 01:19:27 henning Exp $ */ +/* $OpenBSD: log.c,v 1.5 2004/07/11 03:05:50 dtucker Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -163,7 +163,7 @@ log_sockaddr(struct sockaddr *sa) { static char buf[NI_MAXHOST]; - if (getnameinfo(sa, sa->sa_len, buf, sizeof(buf), NULL, 0, + if (getnameinfo(sa, SA_LEN(sa), buf, sizeof(buf), NULL, 0, NI_NUMERICHOST)) return ("(unknown)"); else |