Commit 6054f5cc authored by Philipp Schafft's avatar Philipp Schafft 🦁

Cleanup: Mark static function as inline

parent 8848d74e
...@@ -50,10 +50,10 @@ struct listensocket_tag { ...@@ -50,10 +50,10 @@ struct listensocket_tag {
static listensocket_t * listensocket_new(const listener_t *listener); static listensocket_t * listensocket_new(const listener_t *listener);
#ifdef HAVE_POLL #ifdef HAVE_POLL
static int listensocket__poll_fill(listensocket_t *self, struct pollfd *p); static inline int listensocket__poll_fill(listensocket_t *self, struct pollfd *p);
#else #else
static int listensocket__select_set(listensocket_t *self, fd_set *set, int *max); static inline int listensocket__select_set(listensocket_t *self, fd_set *set, int *max);
static int listensocket__select_isset(listensocket_t *self, fd_set *set); static inline int listensocket__select_isset(listensocket_t *self, fd_set *set);
#endif #endif
static inline void __call_sockcount_cb(listensocket_container_t *self) static inline void __call_sockcount_cb(listensocket_container_t *self)
...@@ -435,7 +435,7 @@ const listener_t * listensocket_get_listener(listensocket_t *self) ...@@ -435,7 +435,7 @@ const listener_t * listensocket_get_listener(listensocket_t *self)
} }
#ifdef HAVE_POLL #ifdef HAVE_POLL
static int listensocket__poll_fill(listensocket_t *self, struct pollfd *p) static inline int listensocket__poll_fill(listensocket_t *self, struct pollfd *p)
{ {
if (!self || self->sock == SOCK_ERROR) if (!self || self->sock == SOCK_ERROR)
return -1; return -1;
...@@ -448,7 +448,7 @@ static int listensocket__poll_fill(listensocket_t *self, struct pollfd *p) ...@@ -448,7 +448,7 @@ static int listensocket__poll_fill(listensocket_t *self, struct pollfd *p)
return 0; return 0;
} }
#else #else
static int listensocket__select_set(listensocket_t *self, fd_set *set, int *max) static inline int listensocket__select_set(listensocket_t *self, fd_set *set, int *max)
{ {
if (!self || self->sock == SOCK_ERROR) if (!self || self->sock == SOCK_ERROR)
return -1; return -1;
...@@ -459,7 +459,7 @@ static int listensocket__select_set(listensocket_t *self, fd_set *set, int *max) ...@@ -459,7 +459,7 @@ static int listensocket__select_set(listensocket_t *self, fd_set *set, int *max)
FD_SET(self->sock, set); FD_SET(self->sock, set);
return 0; return 0;
} }
static int listensocket__select_isset(listensocket_t *self, fd_set *set) static inline int listensocket__select_isset(listensocket_t *self, fd_set *set)
{ {
if (!self || self->sock == SOCK_ERROR) if (!self || self->sock == SOCK_ERROR)
return -1; return -1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment