foo function() -> foo function(void) to conform to ANSI C.

git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@191 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
Matt Chapman 2002-09-24 07:59:14 +00:00
parent 34e95df6f5
commit 5514330916
8 changed files with 25 additions and 25 deletions

4
iso.c
View File

@ -115,7 +115,7 @@ iso_send(STREAM s)
/* Receive ISO transport data packet */
STREAM
iso_recv()
iso_recv(void)
{
STREAM s;
uint8 code;
@ -159,7 +159,7 @@ iso_connect(char *server)
/* Disconnect from the ISO layer */
void
iso_disconnect()
iso_disconnect(void)
{
iso_send_msg(ISO_PDU_DR);
tcp_disconnect();

10
mcs.c
View File

@ -184,7 +184,7 @@ mcs_recv_connect_response(STREAM mcs_data)
/* Send an EDrq message (ASN.1 PER) */
static void
mcs_send_edrq()
mcs_send_edrq(void)
{
STREAM s;
@ -200,7 +200,7 @@ mcs_send_edrq()
/* Send an AUrq message (ASN.1 PER) */
static void
mcs_send_aurq()
mcs_send_aurq(void)
{
STREAM s;
@ -261,7 +261,7 @@ mcs_send_cjrq(uint16 chanid)
/* Expect a CJcf message (ASN.1 PER) */
static BOOL
mcs_recv_cjcf()
mcs_recv_cjcf(void)
{
uint8 opcode, result;
STREAM s;
@ -324,7 +324,7 @@ mcs_send(STREAM s)
/* Receive an MCS transport data packet */
STREAM
mcs_recv()
mcs_recv(void)
{
uint8 opcode, appid, length;
STREAM s;
@ -386,7 +386,7 @@ mcs_connect(char *server, STREAM mcs_data)
/* Disconnect from the MCS layer */
void
mcs_disconnect()
mcs_disconnect(void)
{
iso_disconnect();
}

View File

@ -910,7 +910,7 @@ process_orders(STREAM s)
/* Reset order state */
void
reset_order_state()
reset_order_state(void)
{
memset(&order_state, 0, sizeof(order_state));
order_state.order_type = RDP_ORDER_PATBLT;

8
rdp.c
View File

@ -196,7 +196,7 @@ rdp_send_control(uint16 action)
/* Send a synchronisation PDU */
static void
rdp_send_synchronise()
rdp_send_synchronise(void)
{
STREAM s;
@ -434,7 +434,7 @@ rdp_out_unknown_caps(STREAM s)
/* Send a confirm active PDU */
static void
rdp_send_confirm_active()
rdp_send_confirm_active(void)
{
STREAM s;
uint16 caplen =
@ -681,7 +681,7 @@ process_data_pdu(STREAM s)
/* Process incoming packets */
void
rdp_main_loop()
rdp_main_loop(void)
{
uint8 type;
STREAM s;
@ -721,7 +721,7 @@ rdp_connect(char *server, uint32 flags, char *domain, char *password,
/* Disconnect from the RDP layer */
void
rdp_disconnect()
rdp_disconnect(void)
{
sec_disconnect();
}

View File

@ -363,7 +363,7 @@ sec_send(STREAM s, uint32 flags)
/* Transfer the client random to the server */
static void
sec_establish_key()
sec_establish_key(void)
{
uint32 length = SEC_MODULUS_SIZE + SEC_PADDING_SIZE;
uint32 flags = SEC_CLIENT_RANDOM;
@ -584,7 +584,7 @@ sec_process_mcs_data(STREAM s)
/* Receive secure transport packet */
STREAM
sec_recv()
sec_recv(void)
{
uint32 sec_flags;
STREAM s;
@ -636,7 +636,7 @@ sec_connect(char *server)
/* Disconnect a connection */
void
sec_disconnect()
sec_disconnect(void)
{
mcs_disconnect();
}

2
tcp.c
View File

@ -147,7 +147,7 @@ tcp_connect(char *server)
/* Disconnect on the TCP layer */
void
tcp_disconnect()
tcp_disconnect(void)
{
close(sock);
}

View File

@ -427,7 +427,7 @@ ensure_remote_modifiers(uint32 ev_time, key_translation tr)
void
reset_modifier_keys()
reset_modifier_keys(void)
{
/* reset keys */
uint32 ev_time;

16
xwin.c
View File

@ -217,7 +217,7 @@ get_key_state(int keysym)
}
BOOL
ui_init()
ui_init(void)
{
XPixmapFormatValues *pfm;
uint16 test;
@ -293,7 +293,7 @@ ui_init()
}
void
ui_deinit()
ui_deinit(void)
{
if (IM != NULL)
XCloseIM(IM);
@ -307,7 +307,7 @@ ui_deinit()
}
BOOL
ui_create_window()
ui_create_window(void)
{
XSetWindowAttributes attribs;
XClassHint *classhints;
@ -381,7 +381,7 @@ ui_create_window()
}
void
ui_destroy_window()
ui_destroy_window(void)
{
if (IC != NULL)
XDestroyIC(IC);
@ -390,7 +390,7 @@ ui_destroy_window()
}
void
xwin_toggle_fullscreen()
xwin_toggle_fullscreen(void)
{
Pixmap contents = 0;
@ -416,7 +416,7 @@ xwin_toggle_fullscreen()
/* Process all events in Xlib queue */
static void
xwin_process_events()
xwin_process_events(void)
{
XEvent xevent;
KeySym keysym;
@ -852,7 +852,7 @@ ui_set_clip(int x, int y, int cx, int cy)
}
void
ui_reset_clip()
ui_reset_clip(void)
{
XRectangle rect;
@ -864,7 +864,7 @@ ui_reset_clip()
}
void
ui_bell()
ui_bell(void)
{
XBell(display, 0);
}