From: Alan Cox Date: Thu, 9 Nov 2017 01:20:12 +0000 (+0000) Subject: net_native: fix build with SDCC X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=bb54210d7763040355af7770af5d63e7c316b5e8;p=FUZIX.git net_native: fix build with SDCC --- diff --git a/Kernel/dev/net/net_native.c b/Kernel/dev/net/net_native.c index 53211707..ea340ef6 100644 --- a/Kernel/dev/net/net_native.c +++ b/Kernel/dev/net/net_native.c @@ -29,10 +29,10 @@ static struct netevent ne; int netdev_write(uint8_t flags) { - used(flags); struct socket *s; struct sockdata *sd; + used(flags); /* Grab a message from the service daemon */ if (net_ino == NULL || udata.u_count != sizeof(ne) || uget(udata.u_base, &ne, sizeof(ne)) == -1 || @@ -184,8 +184,8 @@ int netdev_ioctl(uarg_t request, char *data) */ int netdev_close(uint8_t minor) { - used( minor ); struct socket *s = sockets; + used(minor); if (net_ino) { i_deref(net_ino); net_ino = NULL;