mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-11 17:04:19 +01:00
Fix building with WITHOUT_INET_SUPPORT set.
Reviewed by: jamie (actually provided the real fix) MFC after: 3 days
This commit is contained in:
parent
a7ef8bbb2f
commit
7412cb7ef3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=232613
@ -403,11 +403,13 @@ print_jail(int pflags, int jflags)
|
||||
#ifdef INET
|
||||
(!ip4_ok || params[1].jp_valuelen == 0) ? "-"
|
||||
: inet_ntoa(*(struct in_addr *)params[1].jp_value),
|
||||
#else
|
||||
"-",
|
||||
#endif
|
||||
(char *)params[2-!ip4_ok].jp_value,
|
||||
(char *)params[3-!ip4_ok].jp_value);
|
||||
#else
|
||||
"-",
|
||||
(char *)params[1].jp_value,
|
||||
(char *)params[2].jp_value);
|
||||
#endif
|
||||
else {
|
||||
param_values = alloca(nparams * sizeof(*param_values));
|
||||
for (i = 0; i < nparams; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user