[PATCH spice 01/18] stream: consitify reds_stream_get_family() argument

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Marc-André Lureau <marcandre.lureau@xxxxxxxxx>
---
 server/reds-stream.c | 2 +-
 server/reds-stream.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/reds-stream.c b/server/reds-stream.c
index f5244e2..c0f443b 100644
--- a/server/reds-stream.c
+++ b/server/reds-stream.c
@@ -226,7 +226,7 @@ ssize_t reds_stream_write(RedsStream *s, const void *buf, size_t nbyte)
     return ret;
 }
 
-int reds_stream_get_family(RedsStream *s)
+int reds_stream_get_family(const RedsStream *s)
 {
     spice_return_val_if_fail(s != NULL, -1);
 
diff --git a/server/reds-stream.h b/server/reds-stream.h
index b5889e3..8e0edb0 100644
--- a/server/reds-stream.h
+++ b/server/reds-stream.h
@@ -72,7 +72,7 @@ bool reds_stream_is_ssl(RedsStream *stream);
 RedsStreamSslStatus reds_stream_ssl_accept(RedsStream *stream);
 int reds_stream_enable_ssl(RedsStream *stream, SSL_CTX *ctx);
 void reds_stream_set_info_flag(RedsStream *stream, unsigned int flag);
-int reds_stream_get_family(RedsStream *stream);
+int reds_stream_get_family(const RedsStream *stream);
 
 typedef enum {
     REDS_SASL_ERROR_OK,
-- 
2.5.0

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]