Indent fixes
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@781 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
parent
1740bf0b37
commit
c139c48d97
@ -852,7 +852,7 @@ xmalloc(int size)
|
||||
void *
|
||||
xrealloc(void *oldmem, int size)
|
||||
{
|
||||
void * mem;
|
||||
void *mem;
|
||||
|
||||
if (size < 1)
|
||||
size = 1;
|
||||
|
2
rdp.c
2
rdp.c
@ -1092,7 +1092,7 @@ process_data_pdu(STREAM s, uint32 * ext_disc_reason)
|
||||
if (ctype & RDP_MPPC_COMPRESSED)
|
||||
{
|
||||
if (len > RDP_MPPC_DICT_SIZE)
|
||||
error("error decompressed packet size exceeds max\n");
|
||||
error("error decompressed packet size exceeds max\n");
|
||||
if (mppc_expand(s->p, clen, ctype, &roff, &rlen) == -1)
|
||||
error("error while decompressing packet\n");
|
||||
|
||||
|
2
rdp5.c
2
rdp5.c
@ -61,7 +61,7 @@ rdp5_process(STREAM s)
|
||||
if (ctype & RDP_MPPC_COMPRESSED)
|
||||
{
|
||||
if (length > RDP_MPPC_DICT_SIZE)
|
||||
error("error decompressed packet size exceeds max\n");
|
||||
error("error decompressed packet size exceeds max\n");
|
||||
if (mppc_expand(s->p, length, ctype, &roff, &rlen) == -1)
|
||||
error("error while decompressing packet\n");
|
||||
|
||||
|
7
serial.c
7
serial.c
@ -445,10 +445,11 @@ serial_create(uint32 device_id, uint32 access, uint32 share_mode, uint32 disposi
|
||||
|
||||
tcsetattr(serial_fd, TCSANOW, ptermios);
|
||||
*/
|
||||
pser_inf->ptermios->c_iflag &= ~(IGNBRK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON);
|
||||
pser_inf->ptermios->c_iflag &=
|
||||
~(IGNBRK | BRKINT | PARMRK | ISTRIP | INLCR | IGNCR | ICRNL | IXON);
|
||||
pser_inf->ptermios->c_oflag &= ~OPOST;
|
||||
pser_inf->ptermios->c_lflag &= ~(ECHO|ECHONL|ICANON|ISIG|IEXTEN);
|
||||
pser_inf->ptermios->c_cflag &= ~(CSIZE|PARENB);
|
||||
pser_inf->ptermios->c_lflag &= ~(ECHO | ECHONL | ICANON | ISIG | IEXTEN);
|
||||
pser_inf->ptermios->c_cflag &= ~(CSIZE | PARENB);
|
||||
pser_inf->ptermios->c_cflag |= CS8;
|
||||
tcsetattr(serial_fd, TCSANOW, pser_inf->ptermios);
|
||||
|
||||
|
13
vnc/vnc.c
13
vnc/vnc.c
@ -262,7 +262,7 @@ rdp2vnc_connect(char *server, uint32 flags, char *domain, char *password,
|
||||
BOOL deactivated;
|
||||
uint32_t ext_disc_reason;
|
||||
printf("Connection successful.\n");
|
||||
rdp_main_loop(&deactivated,&ext_disc_reason);
|
||||
rdp_main_loop(&deactivated, &ext_disc_reason);
|
||||
printf("Disconnecting...\n");
|
||||
rdp_disconnect();
|
||||
ui_destroy_window();
|
||||
@ -467,7 +467,7 @@ ui_create_cursor(unsigned int x, unsigned int y, int width, int height, uint8 *
|
||||
cursor->mask = (char *) d0;
|
||||
cursor->source = 0;
|
||||
cursor->richSource = cdata;
|
||||
cursor->cleanup = 0; // workaround: this produces a memleak
|
||||
cursor->cleanup = 0; // workaround: this produces a memleak
|
||||
|
||||
cursor->backRed = cursor->backGreen = cursor->backBlue = 0xffff;
|
||||
cursor->foreRed = cursor->foreGreen = cursor->foreBlue = 0;
|
||||
@ -1366,12 +1366,11 @@ ui_resize_window()
|
||||
server->frameBuffer = (char *) realloc(server->frameBuffer, g_width * g_height);
|
||||
server->paddedWidthInBytes = g_width;
|
||||
|
||||
iter=rfbGetClientIterator(server);
|
||||
while((cl=rfbClientIteratorNext(iter)))
|
||||
if(cl->useNewFBSize)
|
||||
iter = rfbGetClientIterator(server);
|
||||
while ((cl = rfbClientIteratorNext(iter)))
|
||||
if (cl->useNewFBSize)
|
||||
cl->newFBSizePending = TRUE;
|
||||
else
|
||||
rfbLog("Warning: Client %s does not support NewFBSize!\n ",cl->host);
|
||||
rfbLog("Warning: Client %s does not support NewFBSize!\n ", cl->host);
|
||||
rfbReleaseClientIterator(iter);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user