summaryrefslogtreecommitdiffstats
path: root/sesman/chansrv
diff options
context:
space:
mode:
Diffstat (limited to 'sesman/chansrv')
-rw-r--r--sesman/chansrv/chansrv.c2
-rw-r--r--sesman/chansrv/chansrv.h2
-rw-r--r--sesman/chansrv/chansrv_fuse.c8
-rw-r--r--sesman/chansrv/chansrv_fuse.h4
-rw-r--r--sesman/chansrv/devredir.h6
-rw-r--r--sesman/chansrv/irp.c6
-rw-r--r--sesman/chansrv/rail.c2
-rw-r--r--sesman/chansrv/sound.c8
8 files changed, 19 insertions, 19 deletions
diff --git a/sesman/chansrv/chansrv.c b/sesman/chansrv/chansrv.c
index 25133fec..b9717c8b 100644
--- a/sesman/chansrv/chansrv.c
+++ b/sesman/chansrv/chansrv.c
@@ -1637,7 +1637,7 @@ main(int argc, char **argv)
* @return unused slot index on success, -1 on failure
******************************************************************************/
int APP_CC
-find_empty_slot_in_dvc_channels()
+find_empty_slot_in_dvc_channels(void)
{
int i;
diff --git a/sesman/chansrv/chansrv.h b/sesman/chansrv/chansrv.h
index a3e8ed51..389f2bd3 100644
--- a/sesman/chansrv/chansrv.h
+++ b/sesman/chansrv/chansrv.h
@@ -61,7 +61,7 @@ int APP_CC send_channel_data(int chan_id, char *data, int size);
int APP_CC send_rail_drawing_orders(char* data, int size);
int APP_CC main_cleanup(void);
int APP_CC add_timeout(int msoffset, void (*callback)(void* data), void* data);
-int APP_CC find_empty_slot_in_dvc_channels();
+int APP_CC find_empty_slot_in_dvc_channels(void);
struct xrdp_api_data * APP_CC struct_from_dvc_chan_id(tui32 dvc_chan_id);
int remove_struct_with_chan_id(tui32 dvc_chan_id);
diff --git a/sesman/chansrv/chansrv_fuse.c b/sesman/chansrv/chansrv_fuse.c
index 16fda322..e5ff1da4 100644
--- a/sesman/chansrv/chansrv_fuse.c
+++ b/sesman/chansrv/chansrv_fuse.c
@@ -848,7 +848,7 @@ static int xfuse_init_lib(struct fuse_args *args)
*
*****************************************************************************/
-static int xfuse_init_xrdp_fs()
+static int xfuse_init_xrdp_fs(void)
{
struct xrdp_inode *xino;
@@ -949,7 +949,7 @@ static int xfuse_init_xrdp_fs()
* @return 0 on success, -1 on failure
*****************************************************************************/
-static int xfuse_deinit_xrdp_fs()
+static int xfuse_deinit_xrdp_fs(void)
{
return 0;
}
@@ -1043,7 +1043,7 @@ static void xfuse_create_file(fuse_req_t req, fuse_ino_t parent,
}
#endif
-static void xfuse_dump_fs()
+static void xfuse_dump_fs(void)
{
fuse_ino_t i;
struct xrdp_inode *xinode;
@@ -1387,7 +1387,7 @@ static int xfuse_recursive_delete_dir_with_xinode(XRDP_INODE *xinode)
return 0;
}
-static void xfuse_update_xrdpfs_size()
+static void xfuse_update_xrdpfs_size(void)
{
void *vp;
int diff;
diff --git a/sesman/chansrv/chansrv_fuse.h b/sesman/chansrv/chansrv_fuse.h
index 4638add5..63e4b5d1 100644
--- a/sesman/chansrv/chansrv_fuse.h
+++ b/sesman/chansrv/chansrv_fuse.h
@@ -45,8 +45,8 @@ struct xrdp_inode
};
typedef struct xrdp_inode XRDP_INODE; // LK_TODO use this instead of using struct xrdp_inode
-int xfuse_init();
-int xfuse_deinit();
+int xfuse_init(void);
+int xfuse_deinit(void);
int xfuse_check_wait_objs(void);
int xfuse_get_wait_objs(tbus *objs, int *count, int *timeout);
int xfuse_create_share(tui32 share_id, char *dirname);
diff --git a/sesman/chansrv/devredir.h b/sesman/chansrv/devredir.h
index 6479c6f6..76900698 100644
--- a/sesman/chansrv/devredir.h
+++ b/sesman/chansrv/devredir.h
@@ -40,9 +40,9 @@ int APP_CC dev_redir_data_in(struct stream* s, int chan_id, int chan_flags,
int APP_CC dev_redir_get_wait_objs(tbus* objs, int* count, int* timeout);
int APP_CC dev_redir_check_wait_objs(void);
-void dev_redir_send_server_core_cap_req();
-void dev_redir_send_server_clientID_confirm();
-void dev_redir_send_server_user_logged_on();
+void dev_redir_send_server_core_cap_req(void);
+void dev_redir_send_server_clientID_confirm(void);
+void dev_redir_send_server_user_logged_on(void);
void devredir_send_server_device_announce_resp(tui32 device_id);
void dev_redir_send_drive_dir_request(IRP *irp, tui32 device_id,
diff --git a/sesman/chansrv/irp.c b/sesman/chansrv/irp.c
index ad318cb1..d8527270 100644
--- a/sesman/chansrv/irp.c
+++ b/sesman/chansrv/irp.c
@@ -69,7 +69,7 @@ IRP *g_irp_head = NULL;
* @return new IRP or NULL on error
*****************************************************************************/
-IRP * devredir_irp_new()
+IRP * devredir_irp_new(void)
{
IRP *irp;
IRP *irp_last;
@@ -239,7 +239,7 @@ IRP * devredir_irp_find_by_fileid(tui32 FileId)
* Return last IRP in linked list
*****************************************************************************/
-IRP * devredir_irp_get_last()
+IRP * devredir_irp_get_last(void)
{
IRP *irp = g_irp_head;
@@ -255,7 +255,7 @@ IRP * devredir_irp_get_last()
return irp;
}
-void devredir_irp_dump()
+void devredir_irp_dump(void)
{
IRP *irp = g_irp_head;
diff --git a/sesman/chansrv/rail.c b/sesman/chansrv/rail.c
index 3470cece..f7e68b08 100644
--- a/sesman/chansrv/rail.c
+++ b/sesman/chansrv/rail.c
@@ -356,7 +356,7 @@ rail_deinit(void)
}
int APP_CC
-rail_startup()
+rail_startup(void)
{
int dummy;
int ver_maj;
diff --git a/sesman/chansrv/sound.c b/sesman/chansrv/sound.c
index e2b6f53b..1662cf28 100644
--- a/sesman/chansrv/sound.c
+++ b/sesman/chansrv/sound.c
@@ -212,8 +212,8 @@ static int APP_CC sound_input_start_recording(void);
static int APP_CC sound_input_stop_recording(void);
static int APP_CC sound_process_input_data(struct stream *s, int bytes);
static int DEFAULT_CC sound_sndsrvr_source_data_in(struct trans *trans);
-static int APP_CC sound_start_source_listener();
-static int APP_CC sound_start_sink_listener();
+static int APP_CC sound_start_source_listener(void);
+static int APP_CC sound_start_sink_listener(void);
/*****************************************************************************/
static int APP_CC
@@ -1513,7 +1513,7 @@ sound_sndsrvr_source_data_in(struct trans *trans)
* Start a listener for microphone redirection connections
*****************************************************************************/
static int APP_CC
-sound_start_source_listener()
+sound_start_source_listener(void)
{
char port[1024];
@@ -1530,7 +1530,7 @@ sound_start_source_listener()
* Start a listener for speaker redirection connections
*****************************************************************************/
static int APP_CC
-sound_start_sink_listener()
+sound_start_sink_listener(void)
{
char port[1024];