[Spice-commits] server/reds-stream.c server/reds-stream.h

Frediano Ziglio fziglio at kemper.freedesktop.org
Thu Oct 19 07:09:19 UTC 2017

 server/reds-stream.c |    6 +++---
 server/reds-stream.h |    3 ---
 2 files changed, 3 insertions(+), 6 deletions(-)

New commits:
commit 8de82e5818853fe9d04ff02ae979e145bcbba5ba
Author: Jonathon Jongsma <jjongsma at redhat.com>
Date:   Wed Oct 18 11:36:49 2017 -0500

    RedsStream: make some functions static
    These were not used outside of reds-stream.c, so make them static and
    remove them from the header.
    Acked-by: Frediano Ziglio <fziglio at redhat.com>

diff --git a/server/reds-stream.c b/server/reds-stream.c
index 0ba46465..b2f97662 100644
--- a/server/reds-stream.c
+++ b/server/reds-stream.c
@@ -438,7 +438,7 @@ bool reds_stream_is_ssl(RedsStream *stream)
     return (stream->priv->ssl != NULL);
-void reds_stream_disable_writev(RedsStream *stream)
+static void reds_stream_disable_writev(RedsStream *stream)
     stream->priv->writev = NULL;
@@ -572,12 +572,12 @@ void reds_stream_async_read(RedsStream *stream,
-bool reds_stream_write_u8(RedsStream *s, uint8_t n)
+static bool reds_stream_write_u8(RedsStream *s, uint8_t n)
     return reds_stream_write_all(s, &n, sizeof(uint8_t));
-bool reds_stream_write_u32(RedsStream *s, uint32_t n)
+static bool reds_stream_write_u32(RedsStream *s, uint32_t n)
     return reds_stream_write_all(s, &n, sizeof(uint32_t));
diff --git a/server/reds-stream.h b/server/reds-stream.h
index 10ec50b3..68944ac1 100644
--- a/server/reds-stream.h
+++ b/server/reds-stream.h
@@ -53,9 +53,6 @@ void reds_stream_set_async_error_handler(RedsStream *stream,
 ssize_t reds_stream_write(RedsStream *s, const void *buf, size_t nbyte);
 ssize_t reds_stream_writev(RedsStream *s, const struct iovec *iov, int iovcnt);
 bool reds_stream_write_all(RedsStream *stream, const void *in_buf, size_t n);
-bool reds_stream_write_u8(RedsStream *s, uint8_t n);
-bool reds_stream_write_u32(RedsStream *s, uint32_t n);
-void reds_stream_disable_writev(RedsStream *stream);
 void reds_stream_free(RedsStream *s);
 void reds_stream_push_channel_event(RedsStream *s, int event);

More information about the Spice-commits mailing list