diff options
author | krion <krion@FreeBSD.org> | 2004-09-02 15:36:40 +0800 |
---|---|---|
committer | krion <krion@FreeBSD.org> | 2004-09-02 15:36:40 +0800 |
commit | 21a918f623b20ad35452e451b96e745fe31bca6f (patch) | |
tree | 7d4d63eb7d7892669d9047ff023d9b8f95cae314 /net/arpd | |
parent | a19dc91de635de00e271b5df13ade01e4d7dc614 (diff) | |
download | freebsd-ports-gnome-21a918f623b20ad35452e451b96e745fe31bca6f.tar.gz freebsd-ports-gnome-21a918f623b20ad35452e451b96e745fe31bca6f.tar.zst freebsd-ports-gnome-21a918f623b20ad35452e451b96e745fe31bca6f.zip |
Fix build with gcc-3.4
PR: ports/71239
Submitted by: maintainer
Diffstat (limited to 'net/arpd')
-rw-r--r-- | net/arpd/files/patch-arpd.c | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/net/arpd/files/patch-arpd.c b/net/arpd/files/patch-arpd.c new file mode 100644 index 000000000000..65feffe46220 --- /dev/null +++ b/net/arpd/files/patch-arpd.c @@ -0,0 +1,42 @@ +--- arpd.c.orig Sun Feb 9 05:20:40 2003 ++++ arpd.c Wed Sep 1 13:38:11 2004 +@@ -265,7 +265,7 @@ + spa->addr_ip, tha->addr_eth, tpa->addr_ip); + + if (op == ARP_OP_REQUEST) { +- syslog(LOG_DEBUG, __FUNCTION__ ": who-has %s tell %s", ++ syslog(LOG_DEBUG, "%s: who-has %s tell %s", __FUNCTION__, + addr_ntoa(tpa), addr_ntoa(spa)); + } else if (op == ARP_OP_REPLY) { + syslog(LOG_INFO, "arp reply %s is-at %s", +@@ -282,7 +282,7 @@ + int error; + + if (addr_cmp(addr, &arpd_ifent.intf_addr) == 0) { +- syslog(LOG_DEBUG, __FUNCTION__ ": %s at %s", ++ syslog(LOG_DEBUG, "%s: %s at %s", __FUNCTION__, + addr_ntoa(addr), addr_ntoa(&arpd_ifent.intf_link_addr)); + return (0); + } +@@ -291,10 +291,10 @@ + error = arp_get(arpd_arp, &arpent); + + if (error == -1) { +- syslog(LOG_DEBUG, __FUNCTION__ ": no entry for %s", ++ syslog(LOG_DEBUG, "%s: no entry for %s", __FUNCTION__, + addr_ntoa(addr)); + } else { +- syslog(LOG_DEBUG, __FUNCTION__ ": %s at %s", ++ syslog(LOG_DEBUG, "%s: %s at %s", __FUNCTION__, + addr_ntoa(addr), addr_ntoa(&arpent.arp_ha)); + } + return (error); +@@ -423,7 +423,7 @@ + if ((req = SPLAY_FIND(tree, &arpd_reqs, &tmp)) != NULL) { + addr_pack(&src.arp_ha, ADDR_TYPE_ETH, ETH_ADDR_BITS, + ethip->ar_sha, ETH_ADDR_LEN); +- syslog(LOG_DEBUG, __FUNCTION__ ": %s at %s", ++ syslog(LOG_DEBUG, "%s: %s at %s", __FUNCTION__, + addr_ntoa(&req->pa), addr_ntoa(&src.arp_ha)); + + /* This address is claimed */ |