mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-01 03:22:48 -05:00
Give BackendVtable separate id and displayname fields.
The previous 'name' field was awkwardly serving both purposes: it was a machine-readable identifier for the backend used in the saved session format, and it was also used in error messages when Plink wanted to complain that it didn't support a particular backend. Now there are two separate name fields for those purposes.
This commit is contained in:
@ -413,8 +413,8 @@ int main(int argc, char **argv)
|
||||
|
||||
if (just_test_share_exists) {
|
||||
if (!vt->test_for_upstream) {
|
||||
fprintf(stderr, "Connection sharing not supported for connection "
|
||||
"type '%s'\n", vt->name);
|
||||
fprintf(stderr, "Connection sharing not supported for this "
|
||||
"connection type (%s)'\n", vt->displayname);
|
||||
return 1;
|
||||
}
|
||||
if (vt->test_for_upstream(conf_get_str(conf, CONF_host),
|
||||
|
@ -444,7 +444,7 @@ const struct BackendVtable serial_backend = {
|
||||
serial_unthrottle,
|
||||
serial_cfg_info,
|
||||
NULL /* test_for_upstream */,
|
||||
"serial",
|
||||
"serial", "Serial",
|
||||
PROT_SERIAL,
|
||||
0
|
||||
};
|
||||
|
Reference in New Issue
Block a user