summaryrefslogtreecommitdiffstats
path: root/server/reds.h
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2011-04-19 23:23:18 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2011-05-02 11:24:44 +0200
commit8a1ceb65faedb182d4e274833d72d0862a46a876 (patch)
treefc363488190b7a5530385c856588e03f25359e9a /server/reds.h
parentfa6956fff50ced22c20bd7a4f06a8fa00a0cd28c (diff)
downloadspice-8a1ceb65faedb182d4e274833d72d0862a46a876.tar.gz
spice-8a1ceb65faedb182d4e274833d72d0862a46a876.tar.xz
spice-8a1ceb65faedb182d4e274833d72d0862a46a876.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.
Diffstat (limited to 'server/reds.h')
-rw-r--r--server/reds.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/server/reds.h b/server/reds.h
index 485d9eb4..2c0e6924 100644
--- a/server/reds.h
+++ b/server/reds.h
@@ -118,10 +118,10 @@ ssize_t reds_stream_write(RedsStream *s, const void *buf, size_t nbyte);
ssize_t reds_stream_writev(RedsStream *s, const struct iovec *iov, int iovcnt);
void reds_stream_free(RedsStream *s);
-void reds_desable_mm_timer();
-void reds_enable_mm_timer();
+void reds_desable_mm_timer(void);
+void reds_enable_mm_timer(void);
void reds_update_mm_timer(uint32_t mm_time);
-uint32_t reds_get_mm_time();
+uint32_t reds_get_mm_time(void);
void reds_set_client_mouse_allowed(int is_client_mouse_allowed,
int x_res, int y_res);
void reds_register_channel(Channel *channel);
@@ -151,10 +151,10 @@ void reds_update_stat_value(uint32_t value);
#endif
// callbacks from main channel messages
-void reds_on_main_agent_start();
+void reds_on_main_agent_start(void);
void reds_on_main_agent_data(void *message, size_t size);
-void reds_on_main_migrate_connected();
-void reds_on_main_migrate_connect_error();
+void reds_on_main_migrate_connected(void);
+void reds_on_main_migrate_connect_error(void);
void reds_on_main_receive_migrate_data(MainMigrateData *data, uint8_t *end);
void reds_on_main_mouse_mode_request(void *message, size_t size);