From: florian Date: Tue, 6 Feb 2018 04:19:56 +0000 (+0000) Subject: kill dead code X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=44216bdff5019e0a221951c2cd9363ce8049fd21;p=openbsd kill dead code --- diff --git a/usr.sbin/acme-client/http.c b/usr.sbin/acme-client/http.c index 921668f1add..599f161437c 100644 --- a/usr.sbin/acme-client/http.c +++ b/usr.sbin/acme-client/http.c @@ -1,4 +1,4 @@ -/* $Id: http.c,v 1.20 2017/03/26 18:41:02 deraadt Exp $ */ +/* $Id: http.c,v 1.21 2018/02/06 04:19:56 florian Exp $ */ /* * Copyright (c) 2016 Kristaps Dzonsons * @@ -736,49 +736,3 @@ http_get(const struct source *addrs, size_t addrsz, const char *domain, g->http = h; return g; } - -#if 0 -int -main(void) -{ - struct httpget *g; - struct httphead *httph; - size_t i, httphsz; - struct source addrs[2]; - size_t addrsz; - -#if 0 - addrs[0].ip = "127.0.0.1"; - addrs[0].family = 4; - addrsz = 1; -#else - addrs[0].ip = "2a00:1450:400a:806::2004"; - addrs[0].family = 6; - addrs[1].ip = "193.135.3.123"; - addrs[1].family = 4; - addrsz = 2; -#endif - - if (http_init() == -1) - errx(EXIT_FAILURE, "http_init"); - -#if 0 - g = http_get(addrs, addrsz, "localhost", 80, "/index.html"); -#else - g = http_get(addrs, addrsz, "www.google.ch", 80, "/index.html", - NULL, 0); -#endif - - if (g == NULL) - errx(EXIT_FAILURE, "http_get"); - - httph = http_head_parse(g->http, g->xfer, &httphsz); - warnx("code: %d", g->code); - - for (i = 0; i < httphsz; i++) - warnx("head: [%s]=[%s]", httph[i].key, httph[i].val); - - http_get_free(g); - return (EXIT_SUCCESS); -} -#endif