Two minor fixes to avoid compiler warnings.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1477 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
parent
c9a4156554
commit
bf4c26c110
@ -110,7 +110,7 @@ printer_create(uint32 device_id, uint32 access, uint32 share_mode, uint32 dispos
|
|||||||
pprinter_data = (PRINTER *) g_rdpdr_device[device_id].pdevice_data;
|
pprinter_data = (PRINTER *) g_rdpdr_device[device_id].pdevice_data;
|
||||||
|
|
||||||
/* default printer name use default printer queue as well in unix */
|
/* default printer name use default printer queue as well in unix */
|
||||||
if (pprinter_data->printer == "mydeskjet")
|
if (strncmp(pprinter_data->printer, "mydeskjet", strlen(pprinter_data->printer)) == 0)
|
||||||
{
|
{
|
||||||
pprinter_data->printer_fp = popen("lpr", "w");
|
pprinter_data->printer_fp = popen("lpr", "w");
|
||||||
}
|
}
|
||||||
|
@ -71,7 +71,8 @@ pstcache_load_bitmap(uint8 cache_id, uint16 cache_idx)
|
|||||||
rd_read_file(fd, celldata, cellhdr.length);
|
rd_read_file(fd, celldata, cellhdr.length);
|
||||||
|
|
||||||
bitmap = ui_create_bitmap(cellhdr.width, cellhdr.height, celldata);
|
bitmap = ui_create_bitmap(cellhdr.width, cellhdr.height, celldata);
|
||||||
DEBUG(("Load bitmap from disk: id=%d, idx=%d, bmp=0x%x)\n", cache_id, cache_idx, bitmap));
|
DEBUG(("Load bitmap from disk: id=%d, idx=%d, bmp=0x%x)\n", cache_id, cache_idx,
|
||||||
|
(unsigned int) bitmap));
|
||||||
cache_put_bitmap(cache_id, cache_idx, bitmap);
|
cache_put_bitmap(cache_id, cache_idx, bitmap);
|
||||||
|
|
||||||
xfree(celldata);
|
xfree(celldata);
|
||||||
|
Loading…
Reference in New Issue
Block a user