X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/bc6cd8b61639f18b4c24ee7aeae2412dbdbe3c0a..cc0966fa089d9ab4572e518dda4d8504d4e0a4fa:/macosx/osxwin.m 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;