summaryrefslogtreecommitdiffstats
path: root/ffd/ffd.c
diff options
context:
space:
mode:
Diffstat (limited to 'ffd/ffd.c')
-rw-r--r--ffd/ffd.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ffd/ffd.c b/ffd/ffd.c
index 879d710..b1117f0 100644
--- a/ffd/ffd.c
+++ b/ffd/ffd.c
@@ -66,11 +66,11 @@ static inline bool use_netif(const char *ifname) {
return ret;
}
-static void update_time() {
+static void update_time(void) {
clock_gettime(CLOCK_MONOTONIC, &now);
}
-static bool check_config() {
+static bool check_config(void) {
if (!netif_is_mesh(mesh)) {
fprintf(stderr, "error: configured interface is no mesh\n");
return false;
@@ -79,7 +79,7 @@ static bool check_config() {
return true;
}
-static bool init_self() {
+static bool init_self(void) {
eth_addr_t primary_addr = netif_mesh_get_primary_addr(mesh);
if (is_eth_addr_unspec(&primary_addr))
return false;
@@ -109,7 +109,7 @@ static bool init_self() {
return true;
}
-static bool init_socket() {
+static bool init_socket(void) {
sockfd = socket(AF_PACKET, SOCK_DGRAM, htons(FFD_PROTO));
if (sockfd < 0) {
fprintf(stderr, "error: socket: %m\n");
@@ -161,7 +161,7 @@ static void update_netif(const char *ifname, unsigned ifindex, void *arg) {
iface->addr = netif_get_eth_addr(ifname);
}
-static void update_netifs() {
+static void update_netifs(void) {
ffd_iface_t *iface, **cur;
for (iface = iface_list; iface; iface = iface->next)
@@ -299,7 +299,7 @@ static void handle_tlv(ffd_tlv_type_t type, const void *data, size_t len, void *
}
}
-static void receive_packet() {
+static void receive_packet(void) {
ffd_packet_t *packet = alloca(sizeof(ffd_packet_t)+FFD_PACKET_MAX);
struct sockaddr_ll from;
socklen_t fromlen = sizeof(from);