Deleted Added
full compact
fetch.c (181962) fetch.c (185912)
1/*-
1/*-
2 * Copyright (c) 2000-2004 Dag-Erling Co�dan Sm�rgrav
2 * Copyright (c) 2000-2004 Dag-Erling Co��dan Sm��rgrav
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer
10 * in this position and unchanged.

--- 11 unchanged lines hidden (view full) ---

22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
29#include <sys/cdefs.h>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer
10 * in this position and unchanged.

--- 11 unchanged lines hidden (view full) ---

22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
29#include <sys/cdefs.h>
30__FBSDID("$FreeBSD: head/usr.bin/fetch/fetch.c 181962 2008-08-21 14:12:34Z obrien $");
30__FBSDID("$FreeBSD: head/usr.bin/fetch/fetch.c 185912 2008-12-11 06:54:36Z des $");
31
32#include <sys/param.h>
33#include <sys/socket.h>
34#include <sys/stat.h>
35#include <sys/time.h>
36
37#include <ctype.h>
38#include <err.h>

--- 331 unchanged lines hidden (view full) ---

370 if (d_flag)
371 strcat(flags, "d");
372 if (U_flag)
373 strcat(flags, "l");
374 timeout = T_secs ? T_secs : ftp_timeout;
375 }
376
377 /* HTTP specific flags */
31
32#include <sys/param.h>
33#include <sys/socket.h>
34#include <sys/stat.h>
35#include <sys/time.h>
36
37#include <ctype.h>
38#include <err.h>

--- 331 unchanged lines hidden (view full) ---

370 if (d_flag)
371 strcat(flags, "d");
372 if (U_flag)
373 strcat(flags, "l");
374 timeout = T_secs ? T_secs : ftp_timeout;
375 }
376
377 /* HTTP specific flags */
378 if (strcmp(url->scheme, SCHEME_HTTP) == 0) {
378 if (strcmp(url->scheme, SCHEME_HTTP) == 0 ||
379 strcmp(url->scheme, SCHEME_HTTPS) == 0) {
379 if (d_flag)
380 strcat(flags, "d");
381 if (A_flag)
382 strcat(flags, "A");
383 timeout = T_secs ? T_secs : http_timeout;
384 }
385
386 /* set the protocol timeout. */

--- 599 unchanged lines hidden ---
380 if (d_flag)
381 strcat(flags, "d");
382 if (A_flag)
383 strcat(flags, "A");
384 timeout = T_secs ? T_secs : http_timeout;
385 }
386
387 /* set the protocol timeout. */

--- 599 unchanged lines hidden ---