summaryrefslogtreecommitdiff
path: root/sysdep
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2017-05-23 13:12:25 +0200
committerOndrej Zajicek (work) <santiago@crfreenet.org>2017-05-23 13:12:25 +0200
commit734e9fb8a933898cd3396786c06728bce6a754e5 (patch)
tree610ffaa2286fc604be4b2f1c30a983f0076b1da8 /sysdep
parentbb7aa06a48f52813a019861a0e06ce9fe4d20c4b (diff)
Minor cleanups and fixes
Diffstat (limited to 'sysdep')
-rw-r--r--sysdep/linux/netlink.c4
-rw-r--r--sysdep/unix/io.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/sysdep/linux/netlink.c b/sysdep/linux/netlink.c
index 8f44b007..40d1196e 100644
--- a/sysdep/linux/netlink.c
+++ b/sysdep/linux/netlink.c
@@ -62,8 +62,8 @@
#ifndef HAVE_STRUCT_RTVIA
struct rtvia {
- __kernel_sa_family_t rtvia_family;
- __u8 rtvia_addr[0];
+ unsigned short rtvia_family;
+ u8 rtvia_addr[0];
};
#endif
diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c
index d1246ea5..0cf48c9d 100644
--- a/sysdep/unix/io.c
+++ b/sysdep/unix/io.c
@@ -1344,6 +1344,7 @@ sk_tcp_connected(sock *s)
s->tx_hook(s);
}
+#ifdef HAVE_LIBSSH
static void
sk_ssh_connected(sock *s)
{
@@ -1351,6 +1352,7 @@ sk_ssh_connected(sock *s)
s->type = SK_SSH;
s->tx_hook(s);
}
+#endif
static int
sk_passive_connected(sock *s, int type)