From 05b6af466c58f0d24c76884d18328109e66871c2 Mon Sep 17 00:00:00 2001 From: Kaspar Schleiser <kaspar@schleiser.de> Date: Sat, 21 Jul 2018 10:13:00 +0200 Subject: [PATCH] sys: add missig <string.h> includes --- sys/net/application_layer/gcoap/gcoap.c | 1 + sys/net/gnrc/netif/gnrc_netif.c | 2 ++ sys/net/gnrc/netif/gnrc_netif_ethernet.c | 2 ++ sys/net/gnrc/network_layer/ipv6/nib/_nib-internal.h | 1 + sys/net/gnrc/network_layer/ndp/gnrc_ndp.c | 2 ++ sys/net/gnrc/network_layer/sixlowpan/nd/gnrc_sixlowpan_nd.c | 2 ++ sys/net/gnrc/routing/rpl/gnrc_rpl.c | 2 ++ sys/net/gnrc/routing/rpl/gnrc_rpl_control_messages.c | 2 ++ sys/net/gnrc/routing/rpl/gnrc_rpl_dodag.c | 2 ++ sys/net/gnrc/routing/rpl/p2p/gnrc_rpl_p2p.c | 2 ++ sys/net/gnrc/sock/ip/gnrc_sock_ip.c | 1 + sys/net/gnrc/sock/udp/gnrc_sock_udp.c | 1 + sys/net/gnrc/transport_layer/tcp/gnrc_tcp.c | 3 ++- sys/net/routing/nhdp/iib_table.c | 2 ++ sys/net/routing/nhdp/nhdp.c | 2 ++ sys/random/fortuna.c | 2 ++ sys/random/fortuna/fortuna.c | 2 ++ sys/shell/commands/sc_ccnl.c | 2 ++ sys/shell/commands/sc_gnrc_netif.c | 1 + 19 files changed, 33 insertions(+), 1 deletion(-) diff --git a/sys/net/application_layer/gcoap/gcoap.c b/sys/net/application_layer/gcoap/gcoap.c index 521e0ac3a4..d39202a580 100644 --- a/sys/net/application_layer/gcoap/gcoap.c +++ b/sys/net/application_layer/gcoap/gcoap.c @@ -21,6 +21,7 @@ #include <errno.h> #include <stdint.h> #include <stdatomic.h> +#include <string.h> #include "assert.h" #include "net/gcoap.h" diff --git a/sys/net/gnrc/netif/gnrc_netif.c b/sys/net/gnrc/netif/gnrc_netif.c index 5ec6145ea8..61a5cf570b 100644 --- a/sys/net/gnrc/netif/gnrc_netif.c +++ b/sys/net/gnrc/netif/gnrc_netif.c @@ -15,6 +15,8 @@ * @author Oliver Hahm <oliver.hahm@inria.fr> */ +#include <string.h> + #include "bitfield.h" #include "net/ethernet.h" #include "net/ipv6.h" diff --git a/sys/net/gnrc/netif/gnrc_netif_ethernet.c b/sys/net/gnrc/netif/gnrc_netif_ethernet.c index 7aafc78808..2ba016ddfc 100644 --- a/sys/net/gnrc/netif/gnrc_netif_ethernet.c +++ b/sys/net/gnrc/netif/gnrc_netif_ethernet.c @@ -15,6 +15,8 @@ * @author Kaspar Schleiser <kaspar@schleiser.de> */ +#include <string.h> + #ifdef MODULE_NETDEV_ETH #include "net/ethernet/hdr.h" #include "net/gnrc.h" diff --git a/sys/net/gnrc/network_layer/ipv6/nib/_nib-internal.h b/sys/net/gnrc/network_layer/ipv6/nib/_nib-internal.h index 78b6d1a88d..145de403f2 100644 --- a/sys/net/gnrc/network_layer/ipv6/nib/_nib-internal.h +++ b/sys/net/gnrc/network_layer/ipv6/nib/_nib-internal.h @@ -22,6 +22,7 @@ #include <assert.h> #include <stdbool.h> #include <stdint.h> +#include <string.h> #include "bitfield.h" #include "evtimer_msg.h" diff --git a/sys/net/gnrc/network_layer/ndp/gnrc_ndp.c b/sys/net/gnrc/network_layer/ndp/gnrc_ndp.c index e467ea9506..1d3fe847a5 100644 --- a/sys/net/gnrc/network_layer/ndp/gnrc_ndp.c +++ b/sys/net/gnrc/network_layer/ndp/gnrc_ndp.c @@ -13,6 +13,8 @@ * @author Martine Lenders <m.lenders@fu-berlin.de> */ +#include <string.h> + #include "net/gnrc/icmpv6.h" #include "net/gnrc/ipv6.h" #include "net/gnrc/netif/internal.h" diff --git a/sys/net/gnrc/network_layer/sixlowpan/nd/gnrc_sixlowpan_nd.c b/sys/net/gnrc/network_layer/sixlowpan/nd/gnrc_sixlowpan_nd.c index 7a6eb118a3..b454bdcfa7 100644 --- a/sys/net/gnrc/network_layer/sixlowpan/nd/gnrc_sixlowpan_nd.c +++ b/sys/net/gnrc/network_layer/sixlowpan/nd/gnrc_sixlowpan_nd.c @@ -12,6 +12,8 @@ * @file */ +#include <string.h> + #include "net/eui64.h" #include "net/icmpv6.h" #include "net/gnrc/ipv6.h" diff --git a/sys/net/gnrc/routing/rpl/gnrc_rpl.c b/sys/net/gnrc/routing/rpl/gnrc_rpl.c index a6a0b2a96c..8c4b1a9ac3 100644 --- a/sys/net/gnrc/routing/rpl/gnrc_rpl.c +++ b/sys/net/gnrc/routing/rpl/gnrc_rpl.c @@ -15,6 +15,8 @@ * @author Cenk Gündoğan <cenk.guendogan@haw-hamburg.de> */ +#include <string.h> + #include "net/icmpv6.h" #include "net/ipv6.h" #include "net/gnrc/netif/internal.h" diff --git a/sys/net/gnrc/routing/rpl/gnrc_rpl_control_messages.c b/sys/net/gnrc/routing/rpl/gnrc_rpl_control_messages.c index 6224a06c42..ac9b57be1c 100644 --- a/sys/net/gnrc/routing/rpl/gnrc_rpl_control_messages.c +++ b/sys/net/gnrc/routing/rpl/gnrc_rpl_control_messages.c @@ -16,6 +16,8 @@ * @author Cenk Gündoğan <cenk.guendogan@haw-hamburg.de> */ +#include <string.h> + #include "net/af.h" #include "net/icmpv6.h" #include "net/ipv6/hdr.h" diff --git a/sys/net/gnrc/routing/rpl/gnrc_rpl_dodag.c b/sys/net/gnrc/routing/rpl/gnrc_rpl_dodag.c index 9fbe1bcf47..c32074155a 100644 --- a/sys/net/gnrc/routing/rpl/gnrc_rpl_dodag.c +++ b/sys/net/gnrc/routing/rpl/gnrc_rpl_dodag.c @@ -17,6 +17,8 @@ */ #include <stdbool.h> +#include <string.h> + #include "net/af.h" #include "net/gnrc/ipv6.h" #include "net/gnrc/netif/internal.h" diff --git a/sys/net/gnrc/routing/rpl/p2p/gnrc_rpl_p2p.c b/sys/net/gnrc/routing/rpl/p2p/gnrc_rpl_p2p.c index 9d8eaca00d..8c7bebd35f 100644 --- a/sys/net/gnrc/routing/rpl/p2p/gnrc_rpl_p2p.c +++ b/sys/net/gnrc/routing/rpl/p2p/gnrc_rpl_p2p.c @@ -14,6 +14,8 @@ * @author Cenk Gündoğan <cenk.guendogan@haw-hamburg.de> */ +#include <string.h> + #include "net/icmpv6.h" #include "net/gnrc/ipv6.h" #include "net/gnrc/icmpv6.h" diff --git a/sys/net/gnrc/sock/ip/gnrc_sock_ip.c b/sys/net/gnrc/sock/ip/gnrc_sock_ip.c index fa73bdcfe1..6ba232480a 100644 --- a/sys/net/gnrc/sock/ip/gnrc_sock_ip.c +++ b/sys/net/gnrc/sock/ip/gnrc_sock_ip.c @@ -16,6 +16,7 @@ */ #include <errno.h> +#include <string.h> #include "byteorder.h" #include "net/af.h" diff --git a/sys/net/gnrc/sock/udp/gnrc_sock_udp.c b/sys/net/gnrc/sock/udp/gnrc_sock_udp.c index 41831e22b6..228aa78095 100644 --- a/sys/net/gnrc/sock/udp/gnrc_sock_udp.c +++ b/sys/net/gnrc/sock/udp/gnrc_sock_udp.c @@ -16,6 +16,7 @@ */ #include <errno.h> +#include <string.h> #include "byteorder.h" #include "net/af.h" diff --git a/sys/net/gnrc/transport_layer/tcp/gnrc_tcp.c b/sys/net/gnrc/transport_layer/tcp/gnrc_tcp.c index 7e824ac976..15a2401250 100644 --- a/sys/net/gnrc/transport_layer/tcp/gnrc_tcp.c +++ b/sys/net/gnrc/transport_layer/tcp/gnrc_tcp.c @@ -18,8 +18,9 @@ */ #include <errno.h> -#include <utlist.h> #include <string.h> +#include <utlist.h> + #include "net/af.h" #include "net/gnrc.h" #include "net/gnrc/tcp.h" diff --git a/sys/net/routing/nhdp/iib_table.c b/sys/net/routing/nhdp/iib_table.c index e1ee9e9ad9..4b7570ec50 100644 --- a/sys/net/routing/nhdp/iib_table.c +++ b/sys/net/routing/nhdp/iib_table.c @@ -18,6 +18,8 @@ * @} */ +#include <string.h> + #include "mutex.h" #include "timex.h" #include "xtimer.h" diff --git a/sys/net/routing/nhdp/nhdp.c b/sys/net/routing/nhdp/nhdp.c index 0897c81272..34488377c6 100644 --- a/sys/net/routing/nhdp/nhdp.c +++ b/sys/net/routing/nhdp/nhdp.c @@ -18,6 +18,8 @@ * @} */ +#include <string.h> + #include "net/sock/udp.h" #include "msg.h" #include "net/gnrc/netapi.h" diff --git a/sys/random/fortuna.c b/sys/random/fortuna.c index 01ac4fa5db..b7e4ee31c9 100644 --- a/sys/random/fortuna.c +++ b/sys/random/fortuna.c @@ -17,6 +17,8 @@ * @} */ +#include <string.h> + #include "log.h" #include "mutex.h" diff --git a/sys/random/fortuna/fortuna.c b/sys/random/fortuna/fortuna.c index 2a60865978..f1d801dd26 100755 --- a/sys/random/fortuna/fortuna.c +++ b/sys/random/fortuna/fortuna.c @@ -5,6 +5,8 @@ * for more information. */ +#include <string.h> + #include "fortuna.h" /** diff --git a/sys/shell/commands/sc_ccnl.c b/sys/shell/commands/sc_ccnl.c index a522d2f8db..249c840a25 100644 --- a/sys/shell/commands/sc_ccnl.c +++ b/sys/shell/commands/sc_ccnl.c @@ -18,6 +18,8 @@ * @} */ +#include <string.h> + #include "random.h" #include "sched.h" #include "net/gnrc/netif.h" diff --git a/sys/shell/commands/sc_gnrc_netif.c b/sys/shell/commands/sc_gnrc_netif.c index 39e37bbfe8..3bfe89a24c 100644 --- a/sys/shell/commands/sc_gnrc_netif.c +++ b/sys/shell/commands/sc_gnrc_netif.c @@ -19,6 +19,7 @@ */ #include <stdio.h> +#include <string.h> #include "net/ipv6/addr.h" #include "net/gnrc.h" -- GitLab