git: 457faca4ec1d - main - net/mpd5: eliminate some build time warnings
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 18 Feb 2023 16:05:30 UTC
The branch main has been updated by eugen: URL: https://cgit.FreeBSD.org/ports/commit/?id=457faca4ec1d0ddef79fbb70ea7aaca8f1461703 commit 457faca4ec1d0ddef79fbb70ea7aaca8f1461703 Author: Eugene Grosbein <eugen@FreeBSD.org> AuthorDate: 2023-02-18 16:04:57 +0000 Commit: Eugene Grosbein <eugen@FreeBSD.org> 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));