From owner-freebsd-current@freebsd.org Fri Nov 2 16:24:59 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BAB8810FC6B9 for ; Fri, 2 Nov 2018 16:24:59 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 28E8B7336D; Fri, 2 Nov 2018 16:24:59 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: by mail-pl1-x62b.google.com with SMTP id p7-v6so1247571plk.5; Fri, 02 Nov 2018 09:24:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=DeoC2fibZsYwkgSY6UMgsXRyJFxhBeYCnN1nbtOCH+U=; b=Aw5ZA/OUCiMYf8KOYIAr5lmhHMLedJdsSmBNrFyyw42RAggWYh/Eo8FucUzOP5MpDT rWXrVGrcSasbQKgJI/D1ZTzqDPx5pB4YZkf3TwIPFHqxiolu33txGNd3LD+xNwLHTDA7 K0AUEZGbUax10lx3YQqDxQHq6xY2LS7XYyOYh6A271Q5Vw5vaYq7rjpreuheosRDBpyg Ko4bISyJajRMsacqN0NT8XF5vXzig/vN+KIRJXphNzT0dsUNEObFUu/y5/HhaUsNgu9q sFKDDSSi0dYERQermIC3aQqX2f91yR4QibgdfbGeczUFMqoyE9TU05APyRR0K76MLwZs kQlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=DeoC2fibZsYwkgSY6UMgsXRyJFxhBeYCnN1nbtOCH+U=; b=S61uWemeI1spzbKcagomiIAb7lYpDx6IzVqjZPIxVoPYl44Mee+Ru3b5/HjyQe374M rf2F/OxgS6qP8Kn59bo1NJhrQ24NAGB/1IRhq2DP4dcRADa9ARjoqmyuR/JAA70h7l/9 8pCqcnv5Qmy/nA+Bg2O41d7k0smFz15hOuPYyBBxj+Am8TkfwE14vJUm1i8wEsS98LC/ dGQdNZblJIwYeJ22f3tLSyIx7+S2gdV2AfpxGpI+G2O4eHj2H6bf+OBXvca70Gl1+Ho6 H2M1s7cO2bDi70uc2l+VqphMsZagYfsKAHC7M2Q5JXY4rFLByJ9RLqaG96Dobh1+kHeu Gazw== X-Gm-Message-State: AGRZ1gIZVu56mz86Zbh7XYXwEKUxY564PJuh+fEVSgiRwd4F9jvI6H78 RTPmCYqKgH24T8iBrqBmISsfCZcI X-Google-Smtp-Source: AJdET5doK+16t20+nNPc9LNYe+u3QvuYD2QUgKDvx81lRZp8R0pktFk0e9rAmOQqm2lF05B5NkhYag== X-Received: by 2002:a17:902:4503:: with SMTP id m3-v6mr12378550pld.217.1541175898080; Fri, 02 Nov 2018 09:24:58 -0700 (PDT) Received: from [192.168.20.7] (c-73-19-52-228.hsd1.wa.comcast.net. [73.19.52.228]) by smtp.gmail.com with ESMTPSA id 196-v6sm76904204pfc.71.2018.11.02.09.24.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Nov 2018 09:24:56 -0700 (PDT) From: "Enji Cooper (yaneurabeya)" Message-Id: Content-Type: multipart/signed; boundary="Apple-Mail=_38ACBFFB-D83E-4BC7-A398-9D6E1EDA6BDF"; protocol="application/pgp-signature"; micalg=pgp-sha256 Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: fix WARNING pid 24503 (uhsoctl): ioctl sign-extension ioctl ffffffff8044692b Date: Fri, 2 Nov 2018 09:24:55 -0700 In-Reply-To: Cc: FreeBSD Current , Pedro Giffuni To: Marcin Cieslak References: X-Mailer: Apple Mail (2.3445.9.1) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Nov 2018 16:25:00 -0000 --Apple-Mail=_38ACBFFB-D83E-4BC7-A398-9D6E1EDA6BDF Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii FYI! > On Oct 25, 2018, at 4:38 AM, Marcin Cieslak wrote: >=20 > The following patch seems to fix the signed ioctl value warnings > in uhsoctl(). >=20 > The code is the same in the current and stable branches. >=20 > Marcin >=20 > Index: usr.sbin/uhsoctl/uhsoctl.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- usr.sbin/uhsoctl/uhsoctl.c (revision 339406) > +++ usr.sbin/uhsoctl/uhsoctl.c (working copy) > @@ -360,7 +360,7 @@ >=20 > /* Add/remove IP address from an interface */ > static int > -ifaddr_ad(int d, const char *ifnam, struct sockaddr *sa, struct = sockaddr *mask) > +ifaddr_ad(unsigned long d, const char *ifnam, struct sockaddr *sa, = struct sockaddr *mask) > { > struct ifaliasreq req; > int fd, error; --Apple-Mail=_38ACBFFB-D83E-4BC7-A398-9D6E1EDA6BDF Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE5bk3FaGcY5rvqmb79YOpJmkwhhUFAlvcelcACgkQ9YOpJmkw hhXAwRAAvSFZUmdF4xyWg72ParYZobPp+7qVarr0JgmI3hSDRnwIiZB45I2XTyQc e2Hum74BPsRHgnGgqx7DfgCuR7xDewqWuYwyu/VVtr9N6lywFjEjcylH77YHUbQ4 qK8vLRX5xsI/GlTNtvxXdfJTK4AYK4/D2vLLzk3Asmayq/gfnztMiivdeGrpiKvb A2WrOTJDAZ4XwZ/YrnS/GuYh9CHwUF7vHQXh5emtYz9MZ2nksh7hbv0HCOWU3H8T HzJ4mOsc8Zcq1oGD9joYG734t+2IO4FMfi0+r4Ttkqesn3DwBxvDY8vBgKZjPutO zGNNrcATQiYLbIrsgmNeRkuq/skdTuzXBXbm+XGbjnTcynsKKJN0fhxvRJooxYDc qMyKQydRwIMiLv93Ip4eAOHdNJ3v0s02YG/McyYaLL6mE45n+c8OQiC4J20YDd51 So+NvgWOmTCXtzQ+gQMMbzbxBuGFHxfcklECKopOinXbpYKi7olMqV3L6CrKo84L hxlD+CugPEWe9PabXwJzKCrgP7OzB4ayk3xt7n+Lf+dGkMY1X62Xq4Py+AeuGQF1 VDBrvcdUXhFzCCDmJfioW8BeltPPql64+gfMF5eKOTDowS9Lbqf9iVNmtSsPLLc8 t58ct9usXUz1KHa7ilOYrOG7PaFmYcXEaxh5RnrtfkcK7AGUfxg= =nIw1 -----END PGP SIGNATURE----- --Apple-Mail=_38ACBFFB-D83E-4BC7-A398-9D6E1EDA6BDF--