X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/bc6cd8b61639f18b4c24ee7aeae2412dbdbe3c0a..ff68564bb194122c2550c183d274281c225d3bc4:/macosx/osxwin.m?ds=sidebyside diff --git a/macosx/osxwin.m b/macosx/osxwin.m index 361f548f..f61e6bff 100644 --- a/macosx/osxwin.m +++ b/macosx/osxwin.m @@ -232,15 +232,9 @@ /* * Set up a backend. */ - { - int i; + back = backend_from_proto(cfg.protocol); + if (!back) back = &pty_backend; - for (i = 0; backends[i].backend != NULL; i++) - if (backends[i].protocol == cfg.protocol) { - back = backends[i].backend; - break; - } - } { const char *error;