diff options
Diffstat (limited to 'src/net')
| -rw-r--r-- | src/net/arp.c | 1 | ||||
| -rw-r--r-- | src/net/icmpv6.c | 5 | ||||
| -rw-r--r-- | src/net/ndp.c | 5 | ||||
| -rw-r--r-- | src/net/netdevice.c | 1 | ||||
| -rw-r--r-- | src/net/retry.c | 1 | ||||
| -rw-r--r-- | src/net/tcp.c | 1 | ||||
| -rw-r--r-- | src/net/tcpip.c | 1 | ||||
| -rw-r--r-- | src/net/udp.c | 1 | ||||
| -rw-r--r-- | src/net/udp/dhcp.c | 1 |
9 files changed, 13 insertions, 4 deletions
diff --git a/src/net/arp.c b/src/net/arp.c index fea81d719..8ca30245d 100644 --- a/src/net/arp.c +++ b/src/net/arp.c @@ -16,6 +16,7 @@ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#include "stdio.h" #include <stdint.h> #include <string.h> #include <byteswap.h> diff --git a/src/net/icmpv6.c b/src/net/icmpv6.c index 183fd06cb..c48bf127c 100644 --- a/src/net/icmpv6.c +++ b/src/net/icmpv6.c @@ -1,3 +1,4 @@ +#include <stdio.h> #include <stdint.h> #include <string.h> #include <byteswap.h> @@ -23,7 +24,7 @@ struct tcpip_protocol icmp6_protocol; * This function prepares a neighbour solicitation packet and sends it to the * network layer. */ -int icmp6_send_solicit ( struct net_device *netdev, struct in6_addr *src, +int icmp6_send_solicit ( struct net_device *netdev, struct in6_addr *src __unused, struct in6_addr *dest ) { union { struct sockaddr_in6 sin6; @@ -60,7 +61,7 @@ int icmp6_send_solicit ( struct net_device *netdev, struct in6_addr *src, st_dest.sin6.sin6_addr.in6_u.u6_addr8[13] = 0xff; /* Send packet over IP6 */ - tcpip_tx ( pkb, &icmp6_protocol, &st_dest.st ); + return ( tcpip_tx ( pkb, &icmp6_protocol, &st_dest.st ) ); } /** diff --git a/src/net/ndp.c b/src/net/ndp.c index b72cf76fc..d99a95695 100644 --- a/src/net/ndp.c +++ b/src/net/ndp.c @@ -1,3 +1,4 @@ +#include "stdio.h" #include <stdint.h> #include <string.h> #include <byteswap.h> @@ -147,8 +148,8 @@ int ndp_resolve ( struct net_device *netdev, struct in6_addr *dest, * @v st_src Source address * @v st_dest Destination address */ -int ndp_process_advert ( struct pk_buff *pkb, struct sockaddr_tcpip *st_src, - struct sockaddr_tcpip *st_dest ) { +int ndp_process_advert ( struct pk_buff *pkb, struct sockaddr_tcpip *st_src __unused, + struct sockaddr_tcpip *st_dest __unused ) { struct neighbour_advert *nadvert = pkb->data; struct ndp_entry *ndp; diff --git a/src/net/netdevice.c b/src/net/netdevice.c index 634977f7a..2ee140902 100644 --- a/src/net/netdevice.c +++ b/src/net/netdevice.c @@ -16,6 +16,7 @@ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#include <stdio.h> #include <stdint.h> #include <byteswap.h> #include <string.h> diff --git a/src/net/retry.c b/src/net/retry.c index 0fb479522..ac98dcfab 100644 --- a/src/net/retry.c +++ b/src/net/retry.c @@ -16,6 +16,7 @@ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#include <stdio.h> #include <stddef.h> #include <latch.h> #include <gpxe/list.h> diff --git a/src/net/tcp.c b/src/net/tcp.c index b84c302b4..7f2f21663 100644 --- a/src/net/tcp.c +++ b/src/net/tcp.c @@ -1,3 +1,4 @@ +#include <stdio.h> #include <string.h> #include <stdlib.h> #include <assert.h> diff --git a/src/net/tcpip.c b/src/net/tcpip.c index 33c9872c8..7476628e1 100644 --- a/src/net/tcpip.c +++ b/src/net/tcpip.c @@ -1,3 +1,4 @@ +#include <stdio.h> #include <stdint.h> #include <string.h> #include <errno.h> diff --git a/src/net/udp.c b/src/net/udp.c index 21bfebcd6..e46c772eb 100644 --- a/src/net/udp.c +++ b/src/net/udp.c @@ -1,3 +1,4 @@ +#include <stdio.h> #include <stdint.h> #include <string.h> #include <assert.h> diff --git a/src/net/udp/dhcp.c b/src/net/udp/dhcp.c index af32f2131..9c36516db 100644 --- a/src/net/udp/dhcp.c +++ b/src/net/udp/dhcp.c @@ -16,6 +16,7 @@ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#include <stdio.h> #include <string.h> #include <errno.h> #include <assert.h> |
