Usermode/wget - Fixed minor warning that caused compilation failure
authorJohn Hodge <[email protected]>
Tue, 17 Jul 2012 08:13:31 +0000 (16:13 +0800)
committerJohn Hodge <[email protected]>
Tue, 17 Jul 2012 08:13:31 +0000 (16:13 +0800)
Usermode/Applications/wget_src/main.c

index 69c9ab7..3410840 100644 (file)
@@ -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));

UCC git Repository :: git.ucc.asn.au