From db2a895ecf81d667358558df321b750113a3a214 Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Tue, 27 Mar 2007 13:03:46 +0000 Subject: [PATCH] (libssh2_poll_channel_write, libssh2_poll_listener_queued): Mark as static. Remove unneeded prototypes. Break Solaris 10 builds according to "Heiko Jansen" . --- src/session.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/session.c b/src/session.c index 55abc852..abab0251 100644 --- a/src/session.c +++ b/src/session.c @@ -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 * Returns 0 if writing to channel would block, * 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; } @@ -735,7 +732,7 @@ inline int libssh2_poll_channel_write(LIBSSH2_CHANNEL *channel) * Returns 0 if no connections are waiting to be accepted * 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; }