X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=be_all.c;h=c58903cc50d8f782a8b60be71cbc3606e246990e;hb=46c00b0f381f48a9992e43e014e104015952e9da;hp=a48cc7076f4b154b9fdfefabbc06342d7cca9990;hpb=e8ebb4c879d6e3f199fd35b3f009a32cd3a03408;p=PuTTY.git diff --git a/be_all.c b/be_all.c index a48cc707..c58903cc 100644 --- a/be_all.c +++ b/be_all.c @@ -6,16 +6,26 @@ #include #include "putty.h" +/* + * This appname is not strictly in the right place, since Plink + * also uses this module. However, Plink doesn't currently use any + * of the dialog-box sorts of things that make use of appname, so + * it shouldn't do any harm here. I'm trying to avoid having to + * have tiny little source modules containing nothing but + * declarations of appname, for as long as I can... + */ +const char *const appname = "PuTTY"; + #ifdef TELNET_DEFAULT const int be_default_protocol = PROT_TELNET; #else const int be_default_protocol = PROT_SSH; #endif -struct backend_list backends[] = { - {PROT_SSH, "ssh", &ssh_backend}, - {PROT_TELNET, "telnet", &telnet_backend}, - {PROT_RLOGIN, "rlogin", &rlogin_backend}, - {PROT_RAW, "raw", &raw_backend}, - {0, NULL} +Backend *backends[] = { + &ssh_backend, + &telnet_backend, + &rlogin_backend, + &raw_backend, + NULL };