/[rdesktop]/sourceforge.net/trunk/rdesktop/rdesktop.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /sourceforge.net/trunk/rdesktop/rdesktop.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 740 by astrand, Sat Jul 31 13:07:41 2004 UTC revision 782 by astrand, Thu Oct 7 13:00:29 2004 UTC
# Line 122  usage(char *program) Line 122  usage(char *program)
122          fprintf(stderr, "   -N: enable numlock syncronization\n");          fprintf(stderr, "   -N: enable numlock syncronization\n");
123          fprintf(stderr, "   -X: embed into another window with a given id.\n");          fprintf(stderr, "   -X: embed into another window with a given id.\n");
124          fprintf(stderr, "   -a: connection colour depth\n");          fprintf(stderr, "   -a: connection colour depth\n");
125            fprintf(stderr, "   -z: enable rdp compression\n");
126          fprintf(stderr, "   -x: RDP5 experience (m[odem 28.8], b[roadband], l[an] or hex nr.)\n");          fprintf(stderr, "   -x: RDP5 experience (m[odem 28.8], b[roadband], l[an] or hex nr.)\n");
127          fprintf(stderr, "   -P: use persistent bitmap caching\n");          fprintf(stderr, "   -P: use persistent bitmap caching\n");
128          fprintf(stderr, "   -r: enable specified device redirection (this flag can be repeated)\n");          fprintf(stderr, "   -r: enable specified device redirection (this flag can be repeated)\n");
# Line 129  usage(char *program) Line 130  usage(char *program)
130                  "         '-r comport:COM1=/dev/ttyS0': enable serial redirection of /dev/ttyS0 to COM1\n");                  "         '-r comport:COM1=/dev/ttyS0': enable serial redirection of /dev/ttyS0 to COM1\n");
131          fprintf(stderr, "             or      COM1=/dev/ttyS0,COM2=/dev/ttyS1\n");          fprintf(stderr, "             or      COM1=/dev/ttyS0,COM2=/dev/ttyS1\n");
132          fprintf(stderr,          fprintf(stderr,
133                  "         '-r disk:A=/mnt/floppy': enable redirection of /mnt/floppy to A:\n");                  "         '-r disk:floppy=/mnt/floppy': enable redirection of /mnt/floppy to 'floppy' share\n");
134          fprintf(stderr, "             or   A=/mnt/floppy,D=/mnt/cdrom'\n");          fprintf(stderr, "             or   'floppy=/mnt/floppy,cdrom=/mnt/cdrom'\n");
135          fprintf(stderr, "         '-r clientname=<client name>': Set the client name displayed\n");          fprintf(stderr, "         '-r clientname=<client name>': Set the client name displayed\n");
136          fprintf(stderr, "             for redirected disks\n");          fprintf(stderr, "             for redirected disks\n");
137          fprintf(stderr,          fprintf(stderr,
# Line 363  main(int argc, char *argv[]) Line 364  main(int argc, char *argv[])
364  #endif  #endif
365    
366          while ((c = getopt(argc, argv,          while ((c = getopt(argc, argv,
367                             VNCOPT "u:d:s:c:p:n:k:g:fbBeEmCDKS:T:NX:a:x:Pr:045h?")) != -1)                             VNCOPT "u:d:s:c:p:n:k:g:fbBeEmzCDKS:T:NX:a:x:Pr:045h?")) != -1)
368          {          {
369                  switch (c)                  switch (c)
370                  {                  {
# Line 524  main(int argc, char *argv[]) Line 525  main(int argc, char *argv[])
525                                  }                                  }
526                                  break;                                  break;
527    
528                          case 'x':                          case 'z':
529                                    DEBUG(("rdp compression enabled\n"));
530                                    flags |= RDP_COMPRESSION;
531                                    break;
532    
533                            case 'x':
534                                  if (strncmp("modem", optarg, 1) == 0)                                  if (strncmp("modem", optarg, 1) == 0)
535                                  {                                  {
536                                          g_rdp5_performanceflags =                                          g_rdp5_performanceflags =
# Line 847  xmalloc(int size) Line 852  xmalloc(int size)
852  void *  void *
853  xrealloc(void *oldmem, int size)  xrealloc(void *oldmem, int size)
854  {  {
855          void *mem = realloc(oldmem, size);          void *mem;
856    
857            if (size < 1)
858                    size = 1;
859            mem = realloc(oldmem, size);
860          if (mem == NULL)          if (mem == NULL)
861          {          {
862                  error("xrealloc %d\n", size);                  error("xrealloc %d\n", size);

Legend:
Removed from v.740  
changed lines
  Added in v.782

  ViewVC Help
Powered by ViewVC 1.1.26