Eliminate noise in output - only print version/copyright in usage(),
make connecting/disconnecting message a DEBUG. git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@121 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
parent
6d5e7121b7
commit
b8aa6678ed
14
rdesktop.c
14
rdesktop.c
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
rdesktop: A Remote Desktop Protocol client.
|
rdesktop: A Remote Desktop Protocol client.
|
||||||
Entrypoint and utility functions
|
Entrypoint and utility functions
|
||||||
Copyright (C) Matthew Chapman 1999-2001
|
Copyright (C) Matthew Chapman 1999-2002
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
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
|
||||||
@ -50,6 +50,10 @@ BOOL grab_keyboard = True;
|
|||||||
static void
|
static void
|
||||||
usage(char *program)
|
usage(char *program)
|
||||||
{
|
{
|
||||||
|
fprintf(stderr, "rdesktop: A Remote Desktop Protocol client.\n");
|
||||||
|
fprintf(stderr, "Version " VERSION ". Copyright (C) 1999-2002 Matt Chapman.\n");
|
||||||
|
fprintf(stderr, "See http://www.rdesktop.org/ for more information.\n\n");
|
||||||
|
|
||||||
fprintf(stderr, "Usage: %s [options] server\n", program);
|
fprintf(stderr, "Usage: %s [options] server\n", program);
|
||||||
fprintf(stderr, " -u: user name\n");
|
fprintf(stderr, " -u: user name\n");
|
||||||
fprintf(stderr, " -d: domain\n");
|
fprintf(stderr, " -d: domain\n");
|
||||||
@ -85,10 +89,6 @@ main(int argc, char *argv[])
|
|||||||
uint32 flags;
|
uint32 flags;
|
||||||
int c;
|
int c;
|
||||||
|
|
||||||
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");
|
|
||||||
|
|
||||||
flags = RDP_LOGON_NORMAL;
|
flags = RDP_LOGON_NORMAL;
|
||||||
domain[0] = password[0] = shell[0] = directory[0] = 0;
|
domain[0] = password[0] = shell[0] = directory[0] = 0;
|
||||||
strcpy(keymapname, "us");
|
strcpy(keymapname, "us");
|
||||||
@ -257,7 +257,7 @@ main(int argc, char *argv[])
|
|||||||
if (!rdp_connect(server, flags, domain, password, shell, directory))
|
if (!rdp_connect(server, flags, domain, password, shell, directory))
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
fprintf(stderr, "Connection successful.\n");
|
DEBUG(("Connection successful.\n"));
|
||||||
|
|
||||||
if (ui_create_window())
|
if (ui_create_window())
|
||||||
{
|
{
|
||||||
@ -265,7 +265,7 @@ main(int argc, char *argv[])
|
|||||||
ui_destroy_window();
|
ui_destroy_window();
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf(stderr, "Disconnecting...\n");
|
DEBUG(("Disconnecting...\n"));
|
||||||
rdp_disconnect();
|
rdp_disconnect();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user