From: John Hodge Date: Tue, 17 Jul 2012 08:13:31 +0000 (+0800) Subject: Usermode/wget - Fixed minor warning that caused compilation failure X-Git-Tag: rel0.15~611^2~23 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=42de3085510c49b32ab3d61d7017a4f0fbd82120;p=tpg%2Facess2.git Usermode/wget - Fixed minor warning that caused compilation failure --- diff --git a/Usermode/Applications/wget_src/main.c b/Usermode/Applications/wget_src/main.c index 69c9ab71..34108407 100644 --- a/Usermode/Applications/wget_src/main.c +++ b/Usermode/Applications/wget_src/main.c @@ -84,6 +84,12 @@ int main(int argc, char *argv[]) continue ; } + if( proto != PROTO_HTTP ) { + fprintf(stderr, "TODO: Support protocols other than HTTP\n"); + free(uri); + continue ; + } + rv = getaddrinfo(uri->Host, "http", NULL, &addrinfo); if( rv != 0 ) { fprintf(stderr, "Unable to resolve %s: %s\n", uri->Host, gai_strerror(rv));