From nobody Sat Feb 18 16:05:30 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PJtnR08q2z3sgty; Sat, 18 Feb 2023 16:05:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PJtnQ6L1Dz41Ng; Sat, 18 Feb 2023 16:05:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676736330; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=h3oexRkCpY+q9B24VyJjpJeCl5m/ywbKmQvB68T1wHA=; b=NAJVOJOW9rl9F5RmdMcygJIvGV5fFRoTGvEOAEXsi9hHItydpWuSZ18NViOJRzqdupO2Fv hrnAPHE5pmq/2ivW1qLHn25T857Z7h/zDB359y4ePKTbaIRsYwGGaMVgW4ZyH4TcWaFG0j sIoPLm2zauUaINZa0531GJ3IM5/XxHIc4geo9fUegK87SjC+XJe5tfTpQFbEAwl/WdnFA0 sbUCJc381ySd1OVDTmH67C0VLYG1kBCCsS53apwLr3ICpc+GcC2IdejpiNWqsSiIOdsWO0 ostg23phUwZF+QlaAXnbtY9XvLDSDXyDeH1avLRa7uTvtvVZDmP9/zn16KwqJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676736330; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=h3oexRkCpY+q9B24VyJjpJeCl5m/ywbKmQvB68T1wHA=; b=exex42w+EQYGpFWnMhls8ceDCSs5g8fcSboyRgUDPYzWrRchXEYYfrf9V9xmsT+h80rj1t Ef4/LB3pRDkxXD9UXDMSiiqoRelfYRbq9V9QupUe3p+fiMINhy9rzRCFKVQ9qyPS5ud1kU uWh2x1QQ+8klyrxTmbMokv2xHUvrqiSZ2Kk3lo6mZ6gbpNf7p2SQeANnaxPulBtkwgOLyB tImqLufUgwx0Ey+wasOeaPQqNx7W+tQeQMsuow+Uc8fRFMNQ2gsPugrcU5HUPvZvTnBguA uGRIA54+cQRxhv5o+/uZuf5uzsifths/coGSMLWosAbQsyb4bCZkCHX9puR84Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676736330; a=rsa-sha256; cv=none; b=dZOOskBiGyOQ8IWt9ln8O4BiGGLQOP8EtJrtkooOA5pB6XOW4wyz3y7gCGxTotVu7VkA1l jwudwf/P5Gr5AHo0/zV8yoKiKqgHZmagapaIHEeX/hj5vV6gfrZ6IMLS1NPbHEtP7UbJlf t3iqbQmvrLT0ZiPpQIeR0VP9ejF9ByNqB1GLEpwhqoNI+fx+cgwEAvSOHOfDpZJzTTxxKP Jbs4zWMajn8r0fL/mb/4XOyaCxeOwwrgi2Lqz13lluq0Iw+BiWsKOoz0glvEIz1VWctwdQ +MrlAu+7AkXxE0i4IEWA/3fbmJ8h6OCR74UGq81YSVLN/LXvZHNVfoEO8bD/2Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PJtnQ5RHfzTc3; Sat, 18 Feb 2023 16:05:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 31IG5UUp026991; Sat, 18 Feb 2023 16:05:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31IG5UNp026990; Sat, 18 Feb 2023 16:05:30 GMT (envelope-from git) Date: Sat, 18 Feb 2023 16:05:30 GMT Message-Id: <202302181605.31IG5UNp026990@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Eugene Grosbein Subject: git: 457faca4ec1d - main - net/mpd5: eliminate some build time warnings List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: eugen X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 457faca4ec1d0ddef79fbb70ea7aaca8f1461703 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by eugen: URL: https://cgit.FreeBSD.org/ports/commit/?id=457faca4ec1d0ddef79fbb70ea7aaca8f1461703 commit 457faca4ec1d0ddef79fbb70ea7aaca8f1461703 Author: Eugene Grosbein AuthorDate: 2023-02-18 16:04:57 +0000 Commit: Eugene Grosbein CommitDate: 2023-02-18 16:04:57 +0000 net/mpd5: eliminate some build time warnings Import a couple of patches from upstream to eliminate some Clang warnings. PORTREVISION not changed intentionally as changes are cosmetic. --- net/mpd5/files/patch-pap.c | 11 +++++++++++ net/mpd5/files/patch-pppoe-misc | 11 +++++++++++ 2 files changed, 22 insertions(+) diff --git a/net/mpd5/files/patch-pap.c b/net/mpd5/files/patch-pap.c new file mode 100644 index 000000000000..bbf76ae60aab --- /dev/null +++ b/net/mpd5/files/patch-pap.c @@ -0,0 +1,11 @@ +--- src/pap.c.orig 2020-09-06 21:33:02.000000000 +0700 ++++ src/pap.c 2023-02-18 22:36:56.550325000 +0700 +@@ -154,7 +154,7 @@ PapInput(Link l, AuthData auth, const u_char *pkt, u_s + goto error; + + pass_len = pkt[1 + name_len]; +- pass_ptr = pkt + 1 + name_len + 1; ++ pass_ptr = (const char *)pkt + 1 + name_len + 1; + + if (name_len + 1 + pass_len + 1 > len) + goto error; diff --git a/net/mpd5/files/patch-pppoe-misc b/net/mpd5/files/patch-pppoe-misc new file mode 100644 index 000000000000..2d8e606a1797 --- /dev/null +++ b/net/mpd5/files/patch-pppoe-misc @@ -0,0 +1,11 @@ +--- src/pppoe.c.orig 2023-02-18 22:32:31.307998000 +0700 ++++ src/pppoe.c 2023-02-18 22:33:20.814391000 +0700 +@@ -619,7 +619,7 @@ PppoeCtrlReadEvent(int type, void *arg) + switch (u.resp.header.cmd) { + case NGM_PPPOE_SESSIONID: /* XXX: I do not know what to do with this? */ + Log(LG_PHYS3, ("PPPoE: rec'd SESSIONID %u from \"%s\"", +- ntohs((uint16_t)u.resp.data), path)); ++ ntohs(*(uint16_t*)u.resp.data), path)); + break; + case NGM_PPPOE_SUCCESS: + Log(LG_PHYS, ("[%s] PPPoE: connection successful", l->name));