Commit 22ebaae0 authored by Rich Salz's avatar Rich Salz
Browse files

Fewer newlines in comp method output



Print "supported compression methods" all on one line.

Reviewed-by: default avatarAndy Polyakov <appro@openssl.org>
parent 7eeeb49e
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -1394,15 +1394,17 @@ int main(int argc, char *argv[])
        }
    }
    ssl_comp_methods = SSL_COMP_get_compression_methods();
    fprintf(stderr, "Available compression methods:\n");
    fprintf(stderr, "Available compression methods:");
    {
        int j, n = sk_SSL_COMP_num(ssl_comp_methods);
        if (n == 0)
            fprintf(stderr, "  NONE\n");
        else
        else {
            for (j = 0; j < n; j++) {
                SSL_COMP *c = sk_SSL_COMP_value(ssl_comp_methods, j);
                fprintf(stderr, "  %d: %s\n", c->id, c->name);
                fprintf(stderr, "  %s:%d", c->name, c->id);
            }
            fprintf(stderr, "\n");
        }
    }
#endif