[Spice-devel] [PATCH 09/15] Change reds_init_net() to take RedsState arg
Pavel Grunt
pgrunt at redhat.com
Wed Jan 20 06:00:51 PST 2016
On Wed, 2016-01-20 at 13:25 +0000, Frediano Ziglio wrote:
> From: Jonathon Jongsma <jjongsma at redhat.com>
>
Acked-by: Pavel Grunt <pgrunt at redhat.com>
> ---
> server/reds.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/server/reds.c b/server/reds.c
> index 58e45ae..81d253c 100644
> --- a/server/reds.c
> +++ b/server/reds.c
> @@ -2570,7 +2570,7 @@ void reds_set_client_mm_time_latency(RedsState
> *reds, RedClient *client, uint32_
> }
> }
>
> -static int reds_init_net(void)
> +static int reds_init_net(RedsState *reds)
> {
> if (spice_port != -1 || spice_family == AF_UNIX) {
> reds->listen_socket = reds_init_socket(spice_addr,
> spice_port, spice_family);
> @@ -3396,7 +3396,7 @@ static int do_spice_init(SpiceCoreInterface
> *core_interface)
> }
> #endif
>
> - if (reds_init_net() < 0) {
> + if (reds_init_net(reds) < 0) {
> goto err;
> }
> if (reds->secure_listen_socket != -1) {
More information about the Spice-devel
mailing list