diff options
author | Christian Weisgerber <naddy@cvs.openbsd.org> | 2020-10-14 19:22:15 +0000 |
---|---|---|
committer | Christian Weisgerber <naddy@cvs.openbsd.org> | 2020-10-14 19:22:15 +0000 |
commit | a2b8d544aa77114ea1605fa6bb4773636dc91f20 (patch) | |
tree | 8f60d285e88c538977725be9e0aa4f68f47026dd /sys/net | |
parent | de2a8f3f723cbfd0532eebdbe71f257f9305c978 (diff) |
replace a MAXPATHLEN that slipped back in with PATH_MAX so userland won't
have to pull in <sys/param.h>
ok kn@ sashan@ deraadt@
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/pfvar.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/pfvar.h b/sys/net/pfvar.h index 102dda67f84..42fe9376eee 100644 --- a/sys/net/pfvar.h +++ b/sys/net/pfvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pfvar.h,v 1.496 2020/08/24 15:30:58 kn Exp $ */ +/* $OpenBSD: pfvar.h,v 1.497 2020/10/14 19:22:14 naddy Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -475,7 +475,7 @@ union pf_rule_ptr { }; #define PF_ANCHOR_NAME_SIZE 64 -#define PF_ANCHOR_MAXPATH (MAXPATHLEN - PF_ANCHOR_NAME_SIZE - 1) +#define PF_ANCHOR_MAXPATH (PATH_MAX - PF_ANCHOR_NAME_SIZE - 1) #define PF_OPTIMIZER_TABLE_PFX "__automatic_" struct pf_rule { |