(libssh2_poll_channel_write, libssh2_poll_listener_queued): Mark as
static. Remove unneeded prototypes. Break Solaris 10 builds according to "Heiko Jansen" <jansen@hbz-nrw.de>.
This commit is contained in:
parent
94a71fe995
commit
db2a895ecf
@ -718,14 +718,11 @@ LIBSSH2_API int libssh2_poll_channel_read(LIBSSH2_CHANNEL *channel, int extended
|
|||||||
}
|
}
|
||||||
/* }}} */
|
/* }}} */
|
||||||
|
|
||||||
inline int libssh2_poll_channel_write(LIBSSH2_CHANNEL *channel);
|
|
||||||
inline int libssh2_poll_listener_queued(LIBSSH2_LISTENER *listener);
|
|
||||||
|
|
||||||
/* {{{ libssh2_poll_channel_write
|
/* {{{ libssh2_poll_channel_write
|
||||||
* Returns 0 if writing to channel would block,
|
* Returns 0 if writing to channel would block,
|
||||||
* non-0 if data can be written without blocking
|
* non-0 if data can be written without blocking
|
||||||
*/
|
*/
|
||||||
inline int libssh2_poll_channel_write(LIBSSH2_CHANNEL *channel)
|
static inline int libssh2_poll_channel_write(LIBSSH2_CHANNEL *channel)
|
||||||
{
|
{
|
||||||
return channel->local.window_size ? 1 : 0;
|
return channel->local.window_size ? 1 : 0;
|
||||||
}
|
}
|
||||||
@ -735,7 +732,7 @@ inline int libssh2_poll_channel_write(LIBSSH2_CHANNEL *channel)
|
|||||||
* Returns 0 if no connections are waiting to be accepted
|
* Returns 0 if no connections are waiting to be accepted
|
||||||
* non-0 if one or more connections are available
|
* non-0 if one or more connections are available
|
||||||
*/
|
*/
|
||||||
inline int libssh2_poll_listener_queued(LIBSSH2_LISTENER *listener)
|
static inline int libssh2_poll_listener_queued(LIBSSH2_LISTENER *listener)
|
||||||
{
|
{
|
||||||
return listener->queue ? 1 : 0;
|
return listener->queue ? 1 : 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user