aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2012-03-06 18:39:07 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2012-03-06 18:39:07 +0000
commit7412cb7ef3695566065d0db9831c12f3ba64f3b7 (patch)
treede2550cbfc50ce8a415efe98cbf2873bbe43a6fc
parenta7ef8bbb2fef1d098b572c8d26a9118c476ddc4b (diff)
downloadsrc-7412cb7ef3695566065d0db9831c12f3ba64f3b7.tar.gz
src-7412cb7ef3695566065d0db9831c12f3ba64f3b7.zip
Fix building with WITHOUT_INET_SUPPORT set.
Reviewed by: jamie (actually provided the real fix) MFC after: 3 days
Notes
Notes: svn path=/head/; revision=232613
-rw-r--r--usr.sbin/jls/jls.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/jls/jls.c b/usr.sbin/jls/jls.c
index 7cbc57421695..f16972cef0d8 100644
--- a/usr.sbin/jls/jls.c
+++ b/usr.sbin/jls/jls.c
@@ -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),
+ (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
- (char *)params[2-!ip4_ok].jp_value,
- (char *)params[3-!ip4_ok].jp_value);
else {
param_values = alloca(nparams * sizeof(*param_values));
for (i = 0; i < nparams; i++) {