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

Frediano Ziglio fziglio at redhat.com
Thu Mar 24 08:53:02 UTC 2016


No need to have callback registered internally no static

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



More information about the Spice-devel mailing list