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 */ /* Receive ISO transport data packet */
STREAM STREAM
iso_recv() iso_recv(void)
{ {
STREAM s; STREAM s;
uint8 code; uint8 code;
@ -159,7 +159,7 @@ iso_connect(char *server)
/* Disconnect from the ISO layer */ /* Disconnect from the ISO layer */
void void
iso_disconnect() iso_disconnect(void)
{ {
iso_send_msg(ISO_PDU_DR); iso_send_msg(ISO_PDU_DR);
tcp_disconnect(); 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) */ /* Send an EDrq message (ASN.1 PER) */
static void static void
mcs_send_edrq() mcs_send_edrq(void)
{ {
STREAM s; STREAM s;
@ -200,7 +200,7 @@ mcs_send_edrq()
/* Send an AUrq message (ASN.1 PER) */ /* Send an AUrq message (ASN.1 PER) */
static void static void
mcs_send_aurq() mcs_send_aurq(void)
{ {
STREAM s; STREAM s;
@ -261,7 +261,7 @@ mcs_send_cjrq(uint16 chanid)
/* Expect a CJcf message (ASN.1 PER) */ /* Expect a CJcf message (ASN.1 PER) */
static BOOL static BOOL
mcs_recv_cjcf() mcs_recv_cjcf(void)
{ {
uint8 opcode, result; uint8 opcode, result;
STREAM s; STREAM s;
@ -324,7 +324,7 @@ mcs_send(STREAM s)
/* Receive an MCS transport data packet */ /* Receive an MCS transport data packet */
STREAM STREAM
mcs_recv() mcs_recv(void)
{ {
uint8 opcode, appid, length; uint8 opcode, appid, length;
STREAM s; STREAM s;
@ -386,7 +386,7 @@ mcs_connect(char *server, STREAM mcs_data)
/* Disconnect from the MCS layer */ /* Disconnect from the MCS layer */
void void
mcs_disconnect() mcs_disconnect(void)
{ {
iso_disconnect(); iso_disconnect();
} }

View File

@ -910,7 +910,7 @@ process_orders(STREAM s)
/* Reset order state */ /* Reset order state */
void void
reset_order_state() reset_order_state(void)
{ {
memset(&order_state, 0, sizeof(order_state)); memset(&order_state, 0, sizeof(order_state));
order_state.order_type = RDP_ORDER_PATBLT; 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 */ /* Send a synchronisation PDU */
static void static void
rdp_send_synchronise() rdp_send_synchronise(void)
{ {
STREAM s; STREAM s;
@ -434,7 +434,7 @@ rdp_out_unknown_caps(STREAM s)
/* Send a confirm active PDU */ /* Send a confirm active PDU */
static void static void
rdp_send_confirm_active() rdp_send_confirm_active(void)
{ {
STREAM s; STREAM s;
uint16 caplen = uint16 caplen =
@ -681,7 +681,7 @@ process_data_pdu(STREAM s)
/* Process incoming packets */ /* Process incoming packets */
void void
rdp_main_loop() rdp_main_loop(void)
{ {
uint8 type; uint8 type;
STREAM s; STREAM s;
@ -721,7 +721,7 @@ rdp_connect(char *server, uint32 flags, char *domain, char *password,
/* Disconnect from the RDP layer */ /* Disconnect from the RDP layer */
void void
rdp_disconnect() rdp_disconnect(void)
{ {
sec_disconnect(); sec_disconnect();
} }

View File

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

2
tcp.c
View File

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

View File

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

16
xwin.c
View File

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