[Spice-devel] [PATCH 5/5] make some functions static

Victor Toso lists at victortoso.com
Thu Mar 24 11:44:08 UTC 2016


Hi,

On Thu, Mar 24, 2016 at 08:53:02AM +0000, Frediano Ziglio wrote:
> No need to have callback registered internally no static

Acked-by: Victor Toso <victortoso at redhat.com>

>
> Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
> ---
>  server/smartcard.c | 4 ++--
>  server/spicevmc.c  | 4 ++--
>  2 files changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/server/smartcard.c b/server/smartcard.c
> index c63fea3..e933c38 100644
> --- a/server/smartcard.c
> +++ b/server/smartcard.c
> @@ -132,8 +132,8 @@ static void smartcard_read_buf_prepare(SmartCardDeviceState *state, VSCMsgHeader
>      }
>  }
>  
> -SpiceCharDeviceMsgToClient *smartcard_read_msg_from_device(SpiceCharDeviceInstance *sin,
> -                                                           void *opaque)
> +static SpiceCharDeviceMsgToClient *smartcard_read_msg_from_device(SpiceCharDeviceInstance *sin,
> +                                                                  void *opaque)
>  {
>      SmartCardDeviceState *state = opaque;
>      SpiceCharDeviceInterface *sif = spice_char_device_get_interface(sin);
> diff --git a/server/spicevmc.c b/server/spicevmc.c
> index f745fdb..367132c 100644
> --- a/server/spicevmc.c
> +++ b/server/spicevmc.c
> @@ -92,8 +92,8 @@ static void spicevmc_pipe_item_unref(SpiceVmcPipeItem *item)
>      }
>  }
>  
> -SpiceCharDeviceMsgToClient *spicevmc_chardev_ref_msg_to_client(SpiceCharDeviceMsgToClient *msg,
> -                                                               void *opaque)
> +static SpiceCharDeviceMsgToClient *spicevmc_chardev_ref_msg_to_client(SpiceCharDeviceMsgToClient *msg,
> +                                                                      void *opaque)
>  {
>      return spicevmc_pipe_item_ref((SpiceVmcPipeItem *)msg);
>  }
> -- 
> 2.5.5
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel


More information about the Spice-devel mailing list