[Spice-devel] [PATCH spice 07/12] Convert cases of () to (void)

Daniel P. Berrange berrange at redhat.com
Mon Apr 2 04:23:42 PDT 2012


From: "Daniel P. Berrange" <berrange at redhat.com>

* server/reds.c, server/smartcard.c: s/()/(void)

Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
---
 server/reds.c      |    2 +-
 server/smartcard.c |    8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/server/reds.c b/server/reds.c
index 53fc748..8ae569c 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -1595,7 +1595,7 @@ static void reds_mig_target_client_free(RedsMigTargetClient *mig_client)
     free(mig_client);
 }
 
-static void reds_mig_target_client_disconnect_all()
+static void reds_mig_target_client_disconnect_all(void)
 {
     RingItem *now, *next;
 
diff --git a/server/smartcard.c b/server/smartcard.c
index 894053e..805cb6e 100644
--- a/server/smartcard.c
+++ b/server/smartcard.c
@@ -65,7 +65,7 @@ static struct Readers {
     SpiceCharDeviceInstance* sin[SMARTCARD_MAX_READERS];
 } g_smartcard_readers = {0, {NULL}};
 
-static SpiceCharDeviceInstance* smartcard_readers_get_unattached();
+static SpiceCharDeviceInstance* smartcard_readers_get_unattached(void);
 static SpiceCharDeviceInstance* smartcard_readers_get(uint32_t reader_id);
 static int smartcard_char_device_add_to_readers(SpiceCharDeviceInstance *sin);
 static void smartcard_char_device_attach(
@@ -77,7 +77,7 @@ static void smartcard_char_device_on_message_from_device(
     SmartCardDeviceState *state, VSCMsgHeader *header);
 static void smartcard_on_message_from_device(
     RedChannelClient *rcc, VSCMsgHeader *vheader);
-static SmartCardDeviceState* smartcard_device_state_new();
+static SmartCardDeviceState* smartcard_device_state_new(void);
 static void smartcard_device_state_free(SmartCardDeviceState* st);
 static void smartcard_init(void);
 
@@ -180,7 +180,7 @@ static SpiceCharDeviceInstance *smartcard_readers_get(uint32_t reader_id)
     return g_smartcard_readers.sin[reader_id];
 }
 
-static SpiceCharDeviceInstance *smartcard_readers_get_unattached()
+static SpiceCharDeviceInstance *smartcard_readers_get_unattached(void)
 {
     int i;
     SmartCardDeviceState* state;
@@ -195,7 +195,7 @@ static SpiceCharDeviceInstance *smartcard_readers_get_unattached()
     return NULL;
 }
 
-static SmartCardDeviceState* smartcard_device_state_new()
+static SmartCardDeviceState* smartcard_device_state_new(void)
 {
     SmartCardDeviceState *st;
 
-- 
1.7.7.6



More information about the Spice-devel mailing list