summaryrefslogtreecommitdiffstats
path: root/sys/kern/uipc_domain.c
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2014-01-19 03:04:54 +0000
committerclaudio <claudio@openbsd.org>2014-01-19 03:04:54 +0000
commitae0d6a99687e7a1b0ecc9f1b103fe35016a33996 (patch)
tree696df56e636c36087a95642539c1819ea9284c7d /sys/kern/uipc_domain.c
parentAdd makefile for distrib/special/installboot. (diff)
downloadwireguard-openbsd-ae0d6a99687e7a1b0ecc9f1b103fe35016a33996.tar.xz
wireguard-openbsd-ae0d6a99687e7a1b0ecc9f1b103fe35016a33996.zip
Remove max_datalen. It is only used once an can be replaced easily with
MHLEN - max_hdr in that place. OK mikeb@
Diffstat (limited to 'sys/kern/uipc_domain.c')
-rw-r--r--sys/kern/uipc_domain.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/uipc_domain.c b/sys/kern/uipc_domain.c
index a23fd6440ee..1be2d180fae 100644
--- a/sys/kern/uipc_domain.c
+++ b/sys/kern/uipc_domain.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uipc_domain.c,v 1.33 2013/08/20 09:14:21 mpi Exp $ */
+/* $OpenBSD: uipc_domain.c,v 1.34 2014/01/19 03:04:54 claudio Exp $ */
/* $NetBSD: uipc_domain.c,v 1.14 1996/02/09 19:00:44 christos Exp $ */
/*
@@ -114,7 +114,6 @@ domaininit(void)
if (max_linkhdr < 16) /* XXX */
max_linkhdr = 16;
max_hdr = max_linkhdr + max_protohdr;
- max_datalen = MHLEN - max_hdr;
timeout_set(&pffast_timeout, pffasttimo, &pffast_timeout);
timeout_set(&pfslow_timeout, pfslowtimo, &pfslow_timeout);
timeout_add(&pffast_timeout, 1);