Skip to content
This repository has been archived by the owner on Jun 27, 2019. It is now read-only.

Commit

Permalink
network: Do not include sys/socket
Browse files Browse the repository at this point in the history
Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
  • Loading branch information
ceolin committed Nov 24, 2015
1 parent 35be3e1 commit 8cac5b5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/lib/comms/include/sol-network.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
#pragma once

#include <stdbool.h>
#include <sys/socket.h>

#include <sol-common-buildopts.h>
#include <sol-vector.h>
Expand Down Expand Up @@ -103,7 +102,7 @@ struct sol_network_link {
};

const char *sol_network_addr_to_str(const struct sol_network_link_addr *addr,
char *buf, socklen_t len);
char *buf, uint32_t len);
const struct sol_network_link_addr *sol_network_addr_from_str(struct sol_network_link_addr *addr, const char *buf);
bool sol_network_link_addr_eq(const struct sol_network_link_addr *a,
const struct sol_network_link_addr *b);
Expand Down
3 changes: 2 additions & 1 deletion src/lib/comms/sol-network-impl-linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <unistd.h>

Expand Down Expand Up @@ -78,7 +79,7 @@ static struct sol_network *network = NULL;

SOL_API const char *
sol_network_addr_to_str(const struct sol_network_link_addr *addr,
char *buf, socklen_t len)
char *buf, uint32_t len)
{
SOL_NULL_CHECK(addr, NULL);
SOL_NULL_CHECK(buf, NULL);
Expand Down
3 changes: 2 additions & 1 deletion src/lib/comms/sol-network-impl-riot.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@

#include <netinet/in.h>
#include <errno.h>
#include <sys/socket.h>

#if MODULE_GNRC_IPV6_NETIF
#include "net/ipv6/addr.h"
Expand All @@ -49,7 +50,7 @@ static struct sol_vector links = SOL_VECTOR_INIT(struct sol_network_link);

SOL_API const char *
sol_network_addr_to_str(const struct sol_network_link_addr *addr,
char *buf, socklen_t len)
char *buf, uint32_t len)
{
#if MODULE_GNRC_IPV6_NETIF
SOL_NULL_CHECK(addr, NULL);
Expand Down

0 comments on commit 8cac5b5

Please sign in to comment.