diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2018-02-13 17:37:39 +0100 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2018-02-14 12:15:40 +0100 |
commit | 978f58cd2e41212d5e1f1543e9f05137831304e1 (patch) | |
tree | 5519a7dc74d5b6edad2039d41b5dba6b9b7476d7 /include/osmocom | |
parent | 7997bf4bed15fa8c6807820b1a9b379a2ae0c61e (diff) |
libcommon: eliminate socket.c
Replace calls to make_sock() with osmo_sock_init_ofd().
Shame on me for not testing every single one in practice, I hope for peer
review to confirm that this should be correct... Read closely please!
The IPPROTO_GRE define seems to be unused (at least in osmo-bsc.git), drop it
completely.
Change-Id: Ia6e4e0e1eed3328fa25b3b90be376d532ad0e56b
Diffstat (limited to 'include/osmocom')
-rw-r--r-- | include/osmocom/bsc/Makefile.am | 1 | ||||
-rw-r--r-- | include/osmocom/bsc/socket.h | 14 |
2 files changed, 0 insertions, 15 deletions
diff --git a/include/osmocom/bsc/Makefile.am b/include/osmocom/bsc/Makefile.am index 699aeb339..1a43be497 100644 --- a/include/osmocom/bsc/Makefile.am +++ b/include/osmocom/bsc/Makefile.am @@ -48,7 +48,6 @@ noinst_HEADERS = \ rest_octets.h \ rs232.h \ signal.h \ - socket.h \ system_information.h \ ussd.h \ vty.h \ diff --git a/include/osmocom/bsc/socket.h b/include/osmocom/bsc/socket.h deleted file mode 100644 index 0fd85f104..000000000 --- a/include/osmocom/bsc/socket.h +++ /dev/null @@ -1,14 +0,0 @@ -#ifndef _BSC_SOCKET_H -#define _BSC_SOCKET_H - -#include <osmocom/core/select.h> - -#ifndef IPPROTO_GRE -#define IPPROTO_GRE 47 -#endif - -int make_sock(struct osmo_fd *bfd, int proto, - uint32_t ip, uint16_t port, int priv_nr, - int (*cb)(struct osmo_fd *fd, unsigned int what), void *data); - -#endif /* _BSC_SOCKET_H */ |