summaryrefslogtreecommitdiff
path: root/sbin/isakmpd/monitor.c
diff options
context:
space:
mode:
authorHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2005-04-08 23:15:27 +0000
committerHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2005-04-08 23:15:27 +0000
commit9967edda194eb32d6402b621364e4f48c784e1a8 (patch)
tree702f75ac2519f01081ed76a0ee2cfc3052625bb8 /sbin/isakmpd/monitor.c
parentcb04993a6a5ad3e448426e96a948cdef66528031 (diff)
get rid of sysdep_sa_len
ok cloder@
Diffstat (limited to 'sbin/isakmpd/monitor.c')
-rw-r--r--sbin/isakmpd/monitor.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/sbin/isakmpd/monitor.c b/sbin/isakmpd/monitor.c
index 33aa75392e8..548a62ea70a 100644
--- a/sbin/isakmpd/monitor.c
+++ b/sbin/isakmpd/monitor.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: monitor.c,v 1.38 2005/04/08 17:15:01 deraadt Exp $ */
+/* $OpenBSD: monitor.c,v 1.39 2005/04/08 23:15:26 hshoexer Exp $ */
/*
* Copyright (c) 2003 Håkan Olsson. All rights reserved.
@@ -44,8 +44,6 @@
#include <regex.h>
#include <keynote.h>
-#include "sysdep.h"
-
#include "conf.h"
#include "log.h"
#include "monitor.h"
@@ -1059,9 +1057,9 @@ m_priv_check_bind(const struct sockaddr *sa, socklen_t salen)
log_print("NULL address");
return 1;
}
- if (sysdep_sa_len((struct sockaddr *)sa) != salen) {
- log_print("Length mismatch: %d %d",
- (int)sysdep_sa_len((struct sockaddr *)sa), (int)salen);
+ if (SA_LEN(sa) != salen) {
+ log_print("Length mismatch: %lu %lu", (unsigned long)sa->sa_len,
+ (unsigned long)salen);
return 1;
}
switch (sa->sa_family) {