/[rdesktop]/sourceforge.net/branches/seamlessrdp-branch/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/branches/seamlessrdp-branch/rdesktop/rdesktop.c

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

revision 24 by matty, Sat Jan 6 03:12:10 2001 UTC revision 25 by matty, Sat Jan 6 03:47:04 2001 UTC
# Line 37  BOOL orders = True; Line 37  BOOL orders = True;
37  BOOL licence = True;  BOOL licence = True;
38    
39  /* Display usage information */  /* Display usage information */
40  static void usage(char *program)  static void
41    usage(char *program)
42  {  {
43          STATUS("Usage: %s [options] server\n", program);          STATUS("Usage: %s [options] server\n", program);
44          STATUS("   -u: user name\n");          STATUS("   -u: user name\n");
# Line 55  static void usage(char *program) Line 56  static void usage(char *program)
56  }  }
57    
58  /* Client program */  /* Client program */
59  int main(int argc, char *argv[])  int
60    main(int argc, char *argv[])
61  {  {
62          struct passwd *pw;          struct passwd *pw;
63          char *server;          char *server;
# Line 183  int main(int argc, char *argv[]) Line 185  int main(int argc, char *argv[])
185  }  }
186    
187  /* Generate a 32-byte random for the secure transport code. */  /* Generate a 32-byte random for the secure transport code. */
188  void generate_random(uint8 *random)  void
189    generate_random(uint8 *random)
190  {  {
191          struct stat st;          struct stat st;
192          struct tms tmsbuf;          struct tms tmsbuf;
# Line 210  void generate_random(uint8 *random) Line 213  void generate_random(uint8 *random)
213  }  }
214    
215  /* malloc; exit if out of memory */  /* malloc; exit if out of memory */
216  void *xmalloc(int size)  void *
217    xmalloc(int size)
218  {  {
219          void *mem = malloc(size);          void *mem = malloc(size);
220          if (mem == NULL)          if (mem == NULL)
# Line 222  void *xmalloc(int size) Line 226  void *xmalloc(int size)
226  }  }
227    
228  /* realloc; exit if out of memory */  /* realloc; exit if out of memory */
229  void *xrealloc(void *oldmem, int size)  void *
230    xrealloc(void *oldmem, int size)
231  {  {
232          void *mem = realloc(oldmem, size);          void *mem = realloc(oldmem, size);
233          if (mem == NULL)          if (mem == NULL)
# Line 234  void *xrealloc(void *oldmem, int size) Line 239  void *xrealloc(void *oldmem, int size)
239  }  }
240    
241  /* free */  /* free */
242  void xfree(void *mem)  void
243    xfree(void *mem)
244  {  {
245          free(mem);          free(mem);
246  }  }
247    
248  /* Produce a hex dump */  /* Produce a hex dump */
249  void hexdump(unsigned char *p, unsigned int len)  void
250    hexdump(unsigned char *p, unsigned int len)
251  {  {
252          unsigned char *line = p;          unsigned char *line = p;
253          unsigned int thisline, offset = 0;          unsigned int thisline, offset = 0;

Legend:
Removed from v.24  
changed lines
  Added in v.25

  ViewVC Help
Powered by ViewVC 1.1.26