ports/net/mpd5/files/patch-pppoe-misc
Eugene Grosbein 457faca4ec
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.
2023-02-18 23:04:57 +07:00

11 lines
531 B
Text

--- 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));