diff options
author | dimitri staessens <[email protected]> | 2016-07-07 15:37:34 +0200 |
---|---|---|
committer | dimitri staessens <[email protected]> | 2016-07-07 15:40:43 +0200 |
commit | b3870ef695a256be4a4ed28a991c39aab37bd6f3 (patch) | |
tree | 33604c48880d3a01d7053608584236dd15fc43e8 /src | |
parent | 04a8f3ceedefa63f9344311e5ff05ab3ce754fda (diff) | |
download | ouroboros-b3870ef695a256be4a4ed28a991c39aab37bd6f3.tar.gz ouroboros-b3870ef695a256be4a4ed28a991c39aab37bd6f3.zip |
ouroboros: Use ouroboros errno.h
All includes of <errno.h> within ouroboros are replaced with the
ouroboros errno.
Diffstat (limited to 'src')
-rw-r--r-- | src/ipcpd/local/main.c | 2 | ||||
-rw-r--r-- | src/ipcpd/normal/shm_pci.c | 3 | ||||
-rw-r--r-- | src/ipcpd/shim-eth-llc/main.c | 2 | ||||
-rw-r--r-- | src/irmd/main.c | 2 | ||||
-rw-r--r-- | src/irmd/registry.c | 2 | ||||
-rw-r--r-- | src/lib/ipcp.c | 2 | ||||
-rw-r--r-- | src/lib/shm_ap_rbuff.c | 2 | ||||
-rw-r--r-- | src/lib/shm_du_map.c | 2 | ||||
-rw-r--r-- | src/lib/sockets.c | 2 | ||||
-rw-r--r-- | src/tools/irm/irm_bind.c | 2 |
10 files changed, 11 insertions, 10 deletions
diff --git a/src/ipcpd/local/main.c b/src/ipcpd/local/main.c index fee7fd22..d72269b8 100644 --- a/src/ipcpd/local/main.c +++ b/src/ipcpd/local/main.c @@ -23,6 +23,7 @@ #include <ouroboros/config.h> #include "ipcp.h" #include "flow.h" +#include <ouroboros/errno.h> #include <ouroboros/shm_du_map.h> #include <ouroboros/shm_ap_rbuff.h> #include <ouroboros/list.h> @@ -38,7 +39,6 @@ #include <ouroboros/logs.h> -#include <errno.h> #include <string.h> #include <signal.h> #include <stdlib.h> diff --git a/src/ipcpd/normal/shm_pci.c b/src/ipcpd/normal/shm_pci.c index e76d8009..144bd15e 100644 --- a/src/ipcpd/normal/shm_pci.c +++ b/src/ipcpd/normal/shm_pci.c @@ -21,9 +21,10 @@ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#include <ourboros/errno.h> + #include "shm_pci.h" #include <stdlib.h> -#include <errno.h> #define SHM_PCI_HEAD_SIZE(a, b) a.addr_size * 2 + \ a.cep_id_size * 2 + \ diff --git a/src/ipcpd/shim-eth-llc/main.c b/src/ipcpd/shim-eth-llc/main.c index 4c260301..f82438c6 100644 --- a/src/ipcpd/shim-eth-llc/main.c +++ b/src/ipcpd/shim-eth-llc/main.c @@ -26,6 +26,7 @@ #include "ipcp.h" #include "flow.h" +#include <ouroboros/errno.h> #include <ouroboros/shm_du_map.h> #include <ouroboros/shm_ap_rbuff.h> #include <ouroboros/list.h> @@ -47,7 +48,6 @@ #include <pthread.h> #include <fcntl.h> #include <unistd.h> -#include <errno.h> #include <string.h> #include <sys/socket.h> #include <sys/types.h> diff --git a/src/irmd/main.c b/src/irmd/main.c index c1481a67..19bc5b9b 100644 --- a/src/irmd/main.c +++ b/src/irmd/main.c @@ -24,6 +24,7 @@ #define OUROBOROS_PREFIX "irmd" #include <ouroboros/config.h> +#include <ouroboros/errno.h> #include <ouroboros/logs.h> #include <ouroboros/sockets.h> #include <ouroboros/ipcp.h> @@ -46,7 +47,6 @@ #include <sys/un.h> #include <signal.h> #include <stdlib.h> -#include <errno.h> #include <string.h> #include <limits.h> #include <pthread.h> diff --git a/src/irmd/registry.c b/src/irmd/registry.c index ae532d5a..c5f81d77 100644 --- a/src/irmd/registry.c +++ b/src/irmd/registry.c @@ -26,13 +26,13 @@ #define OUROBOROS_PREFIX "registry" +#include <ouroboros/errno.h> #include <ouroboros/logs.h> #include <ouroboros/irm_config.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> -#include <errno.h> struct reg_instance * reg_instance_create(pid_t api) { diff --git a/src/lib/ipcp.c b/src/lib/ipcp.c index 5d46940d..b0e593e4 100644 --- a/src/lib/ipcp.c +++ b/src/lib/ipcp.c @@ -23,6 +23,7 @@ #define OUROBOROS_PREFIX "lib-ipcp" #include <ouroboros/config.h> +#include <ouroboros/errno.h> #include <ouroboros/ipcp.h> #include <ouroboros/common.h> #include <ouroboros/logs.h> @@ -32,7 +33,6 @@ #include <stdlib.h> #include <string.h> #include <signal.h> -#include <errno.h> #include <stdbool.h> #include <sys/types.h> #include <sys/wait.h> diff --git a/src/lib/shm_ap_rbuff.c b/src/lib/shm_ap_rbuff.c index cf795601..618c4c19 100644 --- a/src/lib/shm_ap_rbuff.c +++ b/src/lib/shm_ap_rbuff.c @@ -21,6 +21,7 @@ */ #include <ouroboros/config.h> +#include <ouroboros/errno.h> #define OUROBOROS_PREFIX "shm_ap_rbuff" @@ -35,7 +36,6 @@ #include <string.h> #include <stdint.h> #include <unistd.h> -#include <errno.h> #include <signal.h> #include <sys/stat.h> diff --git a/src/lib/shm_du_map.c b/src/lib/shm_du_map.c index 01d1e23d..6a4b7361 100644 --- a/src/lib/shm_du_map.c +++ b/src/lib/shm_du_map.c @@ -22,6 +22,7 @@ */ #include <ouroboros/config.h> +#include <ouroboros/errno.h> #include <ouroboros/shm_du_map.h> #include <ouroboros/shm_ap_rbuff.h> #include <ouroboros/time_utils.h> @@ -33,7 +34,6 @@ #include <stdlib.h> #include <string.h> #include <signal.h> -#include <errno.h> #include <sys/stat.h> #define OUROBOROS_PREFIX "shm_du_map" diff --git a/src/lib/sockets.c b/src/lib/sockets.c index d60ea91a..9e13b687 100644 --- a/src/lib/sockets.c +++ b/src/lib/sockets.c @@ -23,6 +23,7 @@ #define OUROBOROS_PREFIX "libouroboros-sockets" #include <ouroboros/config.h> +#include <ouroboros/errno.h> #include <ouroboros/logs.h> #include <ouroboros/common.h> #include <ouroboros/sockets.h> @@ -32,7 +33,6 @@ #include <sys/un.h> #include <string.h> #include <stdlib.h> -#include <errno.h> int client_socket_open(char * file_name) { diff --git a/src/tools/irm/irm_bind.c b/src/tools/irm/irm_bind.c index 45da6e4c..061aeef5 100644 --- a/src/tools/irm/irm_bind.c +++ b/src/tools/irm/irm_bind.c @@ -22,9 +22,9 @@ #include <stdio.h> #include <string.h> -#include <errno.h> #include <ouroboros/irm.h> +#include <ouroboros/errno.h> #include "irm_ops.h" #include "irm_utils.h" |