Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Mar 2012 18:39:08 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r232613 - head/usr.sbin/jls
Message-ID:  <201203061839.q26Id8ge052422@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bz
Date: Tue Mar  6 18:39:07 2012
New Revision: 232613
URL: http://svn.freebsd.org/changeset/base/232613

Log:
  Fix building with WITHOUT_INET_SUPPORT set.
  
  Reviewed by:	jamie (actually provided the real fix)
  MFC after:	3 days

Modified:
  head/usr.sbin/jls/jls.c

Modified: head/usr.sbin/jls/jls.c
==============================================================================
--- head/usr.sbin/jls/jls.c	Tue Mar  6 17:17:03 2012	(r232612)
+++ head/usr.sbin/jls/jls.c	Tue Mar  6 18:39:07 2012	(r232613)
@@ -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++) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201203061839.q26Id8ge052422>