forked from retronetworking/osmo-v5
Work on ph_socket.c
This commit is contained in:
parent
5d972a0077
commit
ef33793758
|
@ -32,8 +32,8 @@
|
||||||
#include "logging.h"
|
#include "logging.h"
|
||||||
#include "ph_socket.h"
|
#include "ph_socket.h"
|
||||||
|
|
||||||
int ph_socket_listen_cb(struct osmo_fd *ofd, unsigned int what);
|
int ph_socket_listen_cb(struct osmo_fd *ofd, unsigned int __attribute__((unused)) what);
|
||||||
int ph_socket_connect_cb(struct osmo_fd *ofd, unsigned int what);
|
int ph_socket_connect_cb(struct osmo_fd *ofd, unsigned int __attribute__((unused)) what);
|
||||||
static void ph_socket_timeout_cb(void *data);
|
static void ph_socket_timeout_cb(void *data);
|
||||||
|
|
||||||
static void open_connection(ph_socket_t *s)
|
static void open_connection(ph_socket_t *s)
|
||||||
|
@ -176,7 +176,7 @@ void ph_socket_exit(ph_socket_t *s)
|
||||||
osmo_timer_del(&s->retry_timer);
|
osmo_timer_del(&s->retry_timer);
|
||||||
}
|
}
|
||||||
|
|
||||||
int ph_socket_listen_cb(struct osmo_fd *ofd, unsigned int what)
|
int ph_socket_listen_cb(struct osmo_fd *ofd, unsigned int __attribute__((unused)) what)
|
||||||
{
|
{
|
||||||
ph_socket_t *s = ofd->data;
|
ph_socket_t *s = ofd->data;
|
||||||
struct sockaddr_un sock_address;
|
struct sockaddr_un sock_address;
|
||||||
|
@ -209,7 +209,7 @@ int ph_socket_listen_cb(struct osmo_fd *ofd, unsigned int what)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int ph_socket_connect_cb(struct osmo_fd *ofd, unsigned int what)
|
int ph_socket_connect_cb(struct osmo_fd *ofd, unsigned __attribute__((unused)) int what)
|
||||||
{
|
{
|
||||||
ph_socket_t *s = ofd->data;
|
ph_socket_t *s = ofd->data;
|
||||||
int rc;
|
int rc;
|
||||||
|
|
Loading…
Reference in New Issue