git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@77 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Björn Groenvall
1995-08-15 07:45:18 +00:00
parent 7e6e65aa98
commit 961674730d

View File

@@ -77,34 +77,32 @@ tninit()
#endif #endif
} }
void void usage(void)
usage()
{ {
fprintf(stderr, "Usage: %s %s%s%s%s\n", fprintf(stderr, "Usage: %s %s%s%s%s\n", prompt,
prompt,
#ifdef AUTHENTICATION #ifdef AUTHENTICATION
"[-8] [-E] [-K] [-L] [-S tos] [-X atype] [-a] [-c] [-d] [-e char]", "[-8] [-E] [-K] [-L] [-S tos] [-X atype] [-a] [-c] [-d] [-e char]",
"\n\t[-k realm] [-l user] [-f/-F] [-n tracefile] ", "\n\t[-k realm] [-l user] [-f/-F] [-n tracefile] ",
#else #else
"[-8] [-E] [-L] [-S tos] [-a] [-c] [-d] [-e char] [-l user]", "[-8] [-E] [-L] [-S tos] [-a] [-c] [-d] [-e char] [-l user]",
"\n\t[-n tracefile]", "\n\t[-n tracefile]",
#endif #endif
#if defined(TN3270) && defined(unix) #if defined(TN3270) && defined(unix)
# ifdef AUTHENTICATION # ifdef AUTHENTICATION
"[-noasynch] [-noasynctty]\n\t[-noasyncnet] [-r] [-t transcom] ", "[-noasynch] [-noasynctty]\n\t[-noasyncnet] [-r] [-t transcom] ",
# else # else
"[-noasynch] [-noasynctty] [-noasyncnet] [-r]\n\t[-t transcom]", "[-noasynch] [-noasynctty] [-noasyncnet] [-r]\n\t[-t transcom]",
# endif # endif
#else #else
"[-r] ", "[-r] ",
#endif #endif
#ifdef ENCRYPTION #ifdef ENCRYPTION
"[-x] [host-name [port]]" "[-x] [host-name [port]]"
#else #else
"[host-name [port]]" "[host-name [port]]"
#endif #endif
); );
exit(1); exit(1);
} }
/* /*
@@ -112,9 +110,7 @@ usage()
*/ */
main(argc, argv) int main(int argc, char **argv)
int argc;
char *argv[];
{ {
extern char *optarg; extern char *optarg;
extern int optind; extern int optind;
@@ -242,7 +238,10 @@ main(argc, argv)
#endif #endif
break; break;
case 'l': case 'l':
autologin = 1; if(autologin == 0){
fprintf(stderr, "%s: Warning: -K ignored\n", prompt);
autologin = -1;
}
user = optarg; user = optarg;
break; break;
case 'n': case 'n':