[Spice-commits] server/smartcard.c server/spicevmc.c

Frediano Ziglio fziglio at kemper.freedesktop.org
Thu Mar 24 12:56:10 UTC 2016


 server/smartcard.c |    4 ++--
 server/spicevmc.c  |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 6aaca6cf247f954128deead556cb38492a6e1a52
Author: Frediano Ziglio <fziglio at redhat.com>
Date:   Thu Mar 24 08:51:26 2016 +0000

    make some functions static
    
    No need to have callback registered internally no static
    
    Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
    Acked-by: Victor Toso <victortoso at redhat.com>

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);
 }


More information about the Spice-commits mailing list