mirror of
https://git.freebsd.org/ports.git
synced 2025-05-15 16:51:52 -04:00
Import a couple of patches from upstream to eliminate some Clang warnings. PORTREVISION not changed intentionally as changes are cosmetic.
11 lines
531 B
Text
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));
|