Fix two compilation errors that occur when Unix domain occurs an IPv6 are enabled

This commit is contained in:
Gregory Nutt 2015-01-29 12:31:29 -06:00
parent f645c10f40
commit 8b9958b7ba
2 changed files with 2 additions and 2 deletions

View File

@ -275,7 +275,7 @@ static uint16_t ping_interrupt(FAR struct net_driver_s *dev, FAR void *conn,
FAR struct icmpv6_echo_reply_s *reply = ICMPv6ECHOREPLY;
nllvdbg("ECHO reply: id=%d seqno=%d\n",
ntohs(reply->id), reply(reply->seqno));
ntohs(reply->id), ntohs(reply->seqno));
if (ntohs(reply->id) == pstate->png_id)
{

View File

@ -226,7 +226,7 @@ ssize_t psock_sendto(FAR struct socket *psock, FAR const void *buf,
if (nsent < 0)
{
ndbg("ERROR: Unix domain sendto() failed: %d\n", ret);
ndbg("ERROR: Unix domain sendto() failed: %ld\n", (long)nsent);
err = -nsent;
goto errout;
}