diff options
author | Joan Lledó <joanlluislledo@gmail.com> | 2019-03-31 19:55:39 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2019-03-31 20:01:39 +0200 |
commit | ef29551e773fd047f855c0922f002d67f18c1ca8 (patch) | |
tree | 6cd56aaec52f45b87dab83590115ae3fa4a72c26 /lwip/port/include/netif/ifcommon.h | |
parent | 79c0f932c5465971b1de55672901b5920bab3c6b (diff) | |
download | hurd-ef29551e773fd047f855c0922f002d67f18c1ca8.tar.gz hurd-ef29551e773fd047f855c0922f002d67f18c1ca8.tar.bz2 hurd-ef29551e773fd047f855c0922f002d67f18c1ca8.zip |
lwip: Use the right error type.
Use lwip's err_t as return type for functions called from lwip
and error_t for functions called from the translator.
* lwip/io-ops.c: Include <errno.h>
* as is not being included for other headers anymore.
* lwip/lwip-util.h: Likewise.
* lwip/port/include/netif/hurdethif.h:
* Include <errno.h>
* Change the return type of the init function to err_t.
* lwip/port/include/netif/hurdloopif.h: Liekwise.
* lwip/port/include/netif/hurdtunif.h: Likewise.
* lwip/port/include/netif/ifcommon.h: Likewise.
* lwip/port/netif/ifcommon.c: Likewise.
* lwip/port/netif/hurdloopif.c:
* Include <errno.h>
* Change output function return type to err_t.
* Return lwip's err_t codes.
* lwip/port/netif/hurdethif.c:
* Include <errno.h>
* Change init function return type to err_t.
* Change output function return type to err_t.
* Return lwip's err_t codes.
* lwip/port/netif/hurdtunif.c: Likewise.
Message-Id: <20190331175541.7095-3-jlledom@member.fsf.org>
Diffstat (limited to 'lwip/port/include/netif/ifcommon.h')
-rw-r--r-- | lwip/port/include/netif/ifcommon.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lwip/port/include/netif/ifcommon.h b/lwip/port/include/netif/ifcommon.h index 15493dc9..51abae1c 100644 --- a/lwip/port/include/netif/ifcommon.h +++ b/lwip/port/include/netif/ifcommon.h @@ -26,6 +26,7 @@ #include <stdint.h> #include <sys/types.h> #include <device/device.h> +#include <errno.h> #include <lwip/netif.h> @@ -42,7 +43,7 @@ struct ifcommon uint16_t flags; /* Callbacks */ - error_t (*init) (struct netif * netif); + err_t (*init) (struct netif * netif); error_t (*terminate) (struct netif * netif); error_t (*open) (struct netif * netif); error_t (*close) (struct netif * netif); @@ -50,7 +51,7 @@ struct ifcommon error_t (*change_flags) (struct netif * netif, uint16_t flags); }; -error_t if_init (struct netif *netif); +err_t if_init (struct netif *netif); error_t if_terminate (struct netif *netif); error_t if_change_flags (struct netif *netif, uint16_t flags); |