--- sourceforge.net/trunk/rdesktop/printer.c 2004/01/23 14:37:51 582 +++ sourceforge.net/trunk/rdesktop/printer.c 2004/02/15 21:19:28 608 @@ -1,5 +1,3 @@ -#define MAX_PRINTERS 5 - #include "rdesktop.h" extern RDPDR_DEVICE g_rdpdr_device[]; @@ -18,7 +16,7 @@ } int -printer_enum_devices(int *id, char *optarg) +printer_enum_devices(uint32 * id, char *optarg) { PRINTER *pprinter_data; @@ -46,7 +44,7 @@ pprinter_data = (PRINTER *) xmalloc(sizeof(PRINTER)); strcpy(g_rdpdr_device[*id].name, "PRN"); - strcat(g_rdpdr_device[*id].name, ltoa(already + count + 1, 10)); + strcat(g_rdpdr_device[*id].name, l_to_a(already + count + 1, 10)); /* first printer is set as default printer */ if ((already + count) == 0)