summaryrefslogtreecommitdiffstats
path: root/server/reds.c
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2011-04-19 23:23:18 +0200
committerAlon Levy <alevy@redhat.com>2011-07-21 15:09:29 +0300
commit7db7212c3a336c9499bfcd10d2affbf76bf1d6b1 (patch)
treebc22c6321c5dafc5f5c2af8701875e87a043895f /server/reds.c
parent0d1a9a3c89d9c31f7cc03b849bcec9ba698abb63 (diff)
downloadspice-7db7212c3a336c9499bfcd10d2affbf76bf1d6b1.tar.gz
spice-7db7212c3a336c9499bfcd10d2affbf76bf1d6b1.tar.xz
spice-7db7212c3a336c9499bfcd10d2affbf76bf1d6b1.zip
use foo(void) instead of foo() in prototypes
In C, the latter isn't a prototype for a function with no arg, but declares a function with an undefined number of args. [picked from master with changes since no main_channel, spice_common, and a bunch of functions aren't there yet]
Diffstat (limited to 'server/reds.c')
-rw-r--r--server/reds.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/reds.c b/server/reds.c
index 2a62fa25..9f881c35 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -4100,7 +4100,7 @@ static void key_modifiers_sender(void *opaque)
reds_send_keyboard_modifiers(kbd_get_leds(keyboard));
}
-uint32_t reds_get_mm_time()
+uint32_t reds_get_mm_time(void)
{
struct timespec time_space;
clock_gettime(CLOCK_MONOTONIC, &time_space);
@@ -4112,7 +4112,7 @@ void reds_update_mm_timer(uint32_t mm_time)
red_dispatcher_set_mm_time(mm_time);
}
-void reds_enable_mm_timer()
+void reds_enable_mm_timer(void)
{
SpiceMsgMainMultiMediaTime time_mes;
RedsOutItem *item;
@@ -4128,7 +4128,7 @@ void reds_enable_mm_timer()
reds_push_pipe_item(item);
}
-void reds_desable_mm_timer()
+void reds_desable_mm_timer(void)
{
core->timer_cancel(reds->mm_timer);
}