X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/7108a872e03aff0fbc4dfb4b7f0f9718d45463b2..9e164d82c8990d3c8cff58d866fb9938907d4d7b:/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;