Indentation fixes

git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@76 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
Peter Åstrand 2002-07-29 20:17:10 +00:00
parent f1e223725f
commit e18946a585
3 changed files with 12 additions and 10 deletions

View File

@ -53,7 +53,7 @@ static void
licence_generate_hwid(uint8 * hwid)
{
buf_out_uint32(hwid, 2);
strncpy((char *)(hwid + 4), hostname, LICENCE_HWID_SIZE - 4);
strncpy((char *) (hwid + 4), hostname, LICENCE_HWID_SIZE - 4);
}
/* Present an existing licence to the server */

View File

@ -220,7 +220,7 @@ void
xkeymap_init2(void)
{
unsigned int max_keycode;
XDisplayKeycodes(display, &min_keycode, (int *)&max_keycode);
XDisplayKeycodes(display, &min_keycode, (int *) &max_keycode);
}

18
xwin.c
View File

@ -527,7 +527,8 @@ xwin_process_events()
case EnterNotify:
if (grab_keyboard)
XGrabKeyboard(display, wnd, True,
GrabModeAsync, GrabModeAsync,
GrabModeAsync,
GrabModeAsync,
CurrentTime);
break;
@ -606,8 +607,8 @@ ui_create_bitmap(int width, int height, uint8 * data)
tdata = (owncolmap ? data : translate_image(width, height, data));
bitmap = XCreatePixmap(display, wnd, width, height, depth);
image = XCreateImage(display, visual, depth, ZPixmap, 0, (char *)tdata,
width, height, 8, 0);
image = XCreateImage(display, visual, depth, ZPixmap, 0,
(char *) tdata, width, height, 8, 0);
XPutImage(display, bitmap, gc, image, 0, 0, 0, 0, width, height);
@ -625,8 +626,8 @@ ui_paint_bitmap(int x, int y, int cx, int cy, int width, int height,
uint8 *tdata;
tdata = (owncolmap ? data : translate_image(width, height, data));
image = XCreateImage(display, visual, depth, ZPixmap, 0, (char *)tdata,
width, height, 8, 0);
image = XCreateImage(display, visual, depth, ZPixmap, 0,
(char *) tdata, width, height, 8, 0);
if (ownbackstore)
{
@ -662,7 +663,7 @@ ui_create_glyph(int width, int height, uint8 * data)
bitmap = XCreatePixmap(display, wnd, width, height, 1);
gc = XCreateGC(display, bitmap, 0, NULL);
image = XCreateImage(display, visual, 1, ZPixmap, 0, (char *)data,
image = XCreateImage(display, visual, 1, ZPixmap, 0, (char *) data,
width, height, 8, scanline);
image->byte_order = MSBFirst;
image->bitmap_bit_order = MSBFirst;
@ -1174,8 +1175,9 @@ ui_desktop_restore(uint32 offset, int x, int y, int cx, int cy)
if (data == NULL)
return;
image = XCreateImage(display, visual, depth, ZPixmap, 0, (char *)data,
cx, cy, BitmapPad(display), cx * bpp / 8);
image = XCreateImage(display, visual, depth, ZPixmap, 0,
(char *) data, cx, cy, BitmapPad(display),
cx * bpp / 8);
if (ownbackstore)
{