Indent fixes

git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@737 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
Peter Åstrand 2004-07-12 21:07:39 +00:00
parent 6adcee4855
commit dc156f8fcd
7 changed files with 33 additions and 34 deletions

View File

@ -40,7 +40,7 @@ cache_remove_lru_bitmap(uint8 cache_id)
{
int i;
uint16 cache_idx = 0;
uint32 m = (uint32)-1;
uint32 m = (uint32) - 1;
BMPCACHEENTRY *pbce;
for (i = 0; i < NUM_ELEMENTS(g_bmpcache[cache_id]); i++)

View File

@ -888,7 +888,7 @@ process_secondary_order(STREAM s)
in_uint16_le(s, flags); /* used by bmpcache2 */
in_uint8(s, type);
next_order = s->p + (sint16)length + 7;
next_order = s->p + (sint16) length + 7;
switch (type)
{

View File

@ -64,9 +64,9 @@ void printercache_process(STREAM s);
/* pstcache.c */
void pstcache_touch_bitmap(uint8 id, uint16 idx, uint32 stamp);
BOOL pstcache_load_bitmap(uint8 id, uint16 idx);
BOOL pstcache_put_bitmap(uint8 id, uint16 idx, uint8 *bmp_id, uint16 wd,
uint16 ht, uint16 len, uint8 *data);
int pstcache_enumerate(uint8 id, uint8 *list);
BOOL pstcache_put_bitmap(uint8 id, uint16 idx, uint8 * bmp_id, uint16 wd,
uint16 ht, uint16 len, uint8 * data);
int pstcache_enumerate(uint8 id, uint8 * list);
BOOL pstcache_init(uint8 id);
/* rdesktop.c */
int main(int argc, char *argv[]);
@ -87,7 +87,7 @@ BOOL rd_pstcache_mkdir(void);
int rd_open_file(char *filename);
void rd_close_file(int fd);
int rd_read_file(int fd, void *ptr, int len);
int rd_write_file(int fd, void* ptr, int len);
int rd_write_file(int fd, void *ptr, int len);
int rd_lseek_file(int fd, int offset);
BOOL rd_lock_file(int fd, int start, int len);
/* rdp5.c */

View File

@ -33,7 +33,7 @@ extern BOOL g_bitmap_cache_precache;
int g_pstcache_fd[8];
int g_pstcache_Bpp;
BOOL g_pstcache_enumerated = False;
uint8 zero_id[] = {0, 0, 0, 0, 0, 0, 0, 0};
uint8 zero_id[] = { 0, 0, 0, 0, 0, 0, 0, 0 };
/* Update usage info for a bitmap */
@ -65,7 +65,7 @@ pstcache_load_bitmap(uint8 cache_id, uint16 cache_idx)
fd = g_pstcache_fd[cache_id];
rd_lseek_file(fd, cache_idx * (g_pstcache_Bpp * MAX_CELL_SIZE + sizeof(CELLHEADER)));
rd_read_file(fd, &cellhdr, sizeof(CELLHEADER));
celldata = (uint8 *)xmalloc(cellhdr.length);
celldata = (uint8 *) xmalloc(cellhdr.length);
rd_read_file(fd, celldata, cellhdr.length);
DEBUG(("Loading bitmap from disk (%d:%d)\n", cache_id, cache_idx));
@ -79,8 +79,8 @@ pstcache_load_bitmap(uint8 cache_id, uint16 cache_idx)
/* Store a bitmap in the persistent cache */
BOOL
pstcache_put_bitmap(uint8 cache_id, uint16 cache_idx, uint8 *bitmap_id,
uint16 width, uint16 height, uint16 length, uint8 *data)
pstcache_put_bitmap(uint8 cache_id, uint16 cache_idx, uint8 * bitmap_id,
uint16 width, uint16 height, uint16 length, uint8 * data)
{
int fd;
CELLHEADER cellhdr;
@ -104,7 +104,7 @@ pstcache_put_bitmap(uint8 cache_id, uint16 cache_idx, uint8 *bitmap_id,
/* list the bitmaps from the persistent cache file */
int
pstcache_enumerate(uint8 cache_id, uint8 *idlist)
pstcache_enumerate(uint8 cache_id, uint8 * idlist)
{
int fd, n, c = 0;
CELLHEADER cellhdr;

View File

@ -1195,7 +1195,7 @@ rd_read_file(int fd, void *ptr, int len)
/* write to file */
int
rd_write_file(int fd, void* ptr, int len)
rd_write_file(int fd, void *ptr, int len)
{
return write(fd, ptr, len);
}

5
rdp.c
View File

@ -410,8 +410,7 @@ rdp_enum_bmpcache2(void)
out_uint32_le(s, flags);
/* list */
out_uint8a(s, idlist + offset * sizeof(BITMAP_ID),
count * sizeof(BITMAP_ID));
out_uint8a(s, idlist + offset * sizeof(BITMAP_ID), count * sizeof(BITMAP_ID));
s_mark_end(s);
rdp_send_data(s, 0x2b);
@ -652,7 +651,7 @@ static uint8 caps_0x10[] = {
/* Output unknown capability sets */
static void
rdp_out_unknown_caps(STREAM s, uint16 id, uint16 length, uint8 *caps)
rdp_out_unknown_caps(STREAM s, uint16 id, uint16 length, uint8 * caps)
{
out_uint16_le(s, id);
out_uint16_le(s, length);