Deleted Added
full compact
fetch.c (91225) fetch.c (93213)
1/*-
2 * Copyright (c) 2000 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

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

19 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
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.
1/*-
2 * Copyright (c) 2000 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

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

19 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
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 * $FreeBSD: head/usr.bin/fetch/fetch.c 91225 2002-02-25 05:00:39Z bde $
29 */
30
27 */
28
29#include <sys/cdefs.h>
30__FBSDID("$FreeBSD: head/usr.bin/fetch/fetch.c 93213 2002-03-26 12:09:49Z charnier $");
31
31#include <sys/param.h>
32#include <sys/socket.h>
33#include <sys/stat.h>
32#include <sys/param.h>
33#include <sys/socket.h>
34#include <sys/stat.h>
34#include <sys/time.h>
35
36#include <ctype.h>
37#include <err.h>
38#include <errno.h>
39#include <signal.h>
40#include <stdio.h>
41#include <stdlib.h>
42#include <string.h>

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

650{
651 struct stat sb;
652 struct sigaction sa;
653 const char *p, *s;
654 char *q;
655 int c, e, r;
656
657 while ((c = getopt(argc, argv,
35
36#include <ctype.h>
37#include <err.h>
38#include <errno.h>
39#include <signal.h>
40#include <stdio.h>
41#include <stdlib.h>
42#include <string.h>

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

650{
651 struct stat sb;
652 struct sigaction sa;
653 const char *p, *s;
654 char *q;
655 int c, e, r;
656
657 while ((c = getopt(argc, argv,
658 "146AaB:bc:dFf:Hh:lMmnPpo:qRrS:sT:tUvw:")) != EOF)
658 "146AaB:bc:dFf:Hh:lMmnPpo:qRrS:sT:tUvw:")) != -1)
659 switch (c) {
660 case '1':
661 once_flag = 1;
662 break;
663 case '4':
664 family = PF_INET;
665 break;
666 case '6':

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

688 break;
689 case 'F':
690 F_flag = 1;
691 break;
692 case 'f':
693 f_filename = optarg;
694 break;
695 case 'H':
659 switch (c) {
660 case '1':
661 once_flag = 1;
662 break;
663 case '4':
664 family = PF_INET;
665 break;
666 case '6':

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

688 break;
689 case 'F':
690 F_flag = 1;
691 break;
692 case 'f':
693 f_filename = optarg;
694 break;
695 case 'H':
696 warnx("The -H option is now implicit, "
696 warnx("the -H option is now implicit, "
697 "use -U to disable");
698 break;
699 case 'h':
700 h_hostname = optarg;
701 break;
702 case 'l':
703 l_flag = 1;
704 break;

--- 197 unchanged lines hidden ---
697 "use -U to disable");
698 break;
699 case 'h':
700 h_hostname = optarg;
701 break;
702 case 'l':
703 l_flag = 1;
704 break;

--- 197 unchanged lines hidden ---