From 42de3085510c49b32ab3d61d7017a4f0fbd82120 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Tue, 17 Jul 2012 16:13:31 +0800 Subject: [PATCH] Usermode/wget - Fixed minor warning that caused compilation failure --- Usermode/Applications/wget_src/main.c | 6 ++++++ 1 file changed, 6 insertions(+) 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)); -- 2.20.1