/[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 121 by matthewc, Sat Sep 14 11:48:44 2002 UTC revision 122 by matthewc, Sat Sep 14 11:54:11 2002 UTC
# Line 1  Line 1 
1  /*  /*
2     rdesktop: A Remote Desktop Protocol client.     rdesktop: A Remote Desktop Protocol client.
3     Entrypoint and utility functions     Entrypoint and utility functions
4     Copyright (C) Matthew Chapman 1999-2001     Copyright (C) Matthew Chapman 1999-2002
5    
6     This program is free software; you can redistribute it and/or modify     This program is free software; you can redistribute it and/or modify
7     it under the terms of the GNU General Public License as published by     it under the terms of the GNU General Public License as published by
# Line 50  BOOL grab_keyboard = True; Line 50  BOOL grab_keyboard = True;
50  static void  static void
51  usage(char *program)  usage(char *program)
52  {  {
53            fprintf(stderr, "rdesktop: A Remote Desktop Protocol client.\n");
54            fprintf(stderr, "Version " VERSION ". Copyright (C) 1999-2002 Matt Chapman.\n");
55            fprintf(stderr, "See http://www.rdesktop.org/ for more information.\n\n");
56    
57          fprintf(stderr, "Usage: %s [options] server\n", program);          fprintf(stderr, "Usage: %s [options] server\n", program);
58          fprintf(stderr, "   -u: user name\n");          fprintf(stderr, "   -u: user name\n");
59          fprintf(stderr, "   -d: domain\n");          fprintf(stderr, "   -d: domain\n");
# Line 85  main(int argc, char *argv[]) Line 89  main(int argc, char *argv[])
89          uint32 flags;          uint32 flags;
90          int c;          int c;
91    
         fprintf(stderr, "rdesktop: A Remote Desktop Protocol client.\n");  
         fprintf(stderr, "Version " VERSION ". Copyright (C) 1999-2001 Matt Chapman.\n");  
         fprintf(stderr, "See http://www.rdesktop.org/ for more information.\n\n");  
   
92          flags = RDP_LOGON_NORMAL;          flags = RDP_LOGON_NORMAL;
93          domain[0] = password[0] = shell[0] = directory[0] = 0;          domain[0] = password[0] = shell[0] = directory[0] = 0;
94          strcpy(keymapname, "us");          strcpy(keymapname, "us");
# Line 257  main(int argc, char *argv[]) Line 257  main(int argc, char *argv[])
257          if (!rdp_connect(server, flags, domain, password, shell, directory))          if (!rdp_connect(server, flags, domain, password, shell, directory))
258                  return 1;                  return 1;
259    
260          fprintf(stderr, "Connection successful.\n");          DEBUG(("Connection successful.\n"));
261    
262          if (ui_create_window())          if (ui_create_window())
263          {          {
# Line 265  main(int argc, char *argv[]) Line 265  main(int argc, char *argv[])
265                  ui_destroy_window();                  ui_destroy_window();
266          }          }
267    
268          fprintf(stderr, "Disconnecting...\n");          DEBUG(("Disconnecting...\n"));
269          rdp_disconnect();          rdp_disconnect();
270          return 0;          return 0;
271  }  }

Legend:
Removed from v.121  
changed lines
  Added in v.122

  ViewVC Help
Powered by ViewVC 1.1.26