Deleted Added
full compact
ippool.c (353087) ippool.c (353088)
1/* $FreeBSD: stable/11/contrib/ipfilter/tools/ippool.c 353087 2019-10-04 02:02:12Z cy $ */
1/* $FreeBSD: stable/11/contrib/ipfilter/tools/ippool.c 353088 2019-10-04 02:02:59Z cy $ */
2
3/*
4 * Copyright (C) 2012 by Darren Reed.
5 *
6 * See the IPFILTER.LICENCE file for details on licencing.
7 */
8#include <sys/types.h>
9#include <sys/time.h>

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

572 case 'v' :
573 opts |= OPT_VERBOSE;
574 break;
575 default :
576 usage(argv[0]);
577 break; /* keep compiler happy */
578 }
579
2
3/*
4 * Copyright (C) 2012 by Darren Reed.
5 *
6 * See the IPFILTER.LICENCE file for details on licencing.
7 */
8#include <sys/types.h>
9#include <sys/time.h>

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

572 case 'v' :
573 opts |= OPT_VERBOSE;
574 break;
575 default :
576 usage(argv[0]);
577 break; /* keep compiler happy */
578 }
579
580 if (argc - 1 - optind > 0)
580 if (argc - optind > 0)
581 usage(argv[0]);
582
583 if (opts & OPT_DEBUG)
584 fprintf(stderr, "poolflush: opts = %#x\n", opts);
585
586 if (!(opts & (OPT_DONOTHING|OPT_DONTOPEN)) && (fd == -1)) {
587 fd = open(IPLOOKUP_NAME, O_RDWR);
588 if (fd == -1) {

--- 516 unchanged lines hidden ---
581 usage(argv[0]);
582
583 if (opts & OPT_DEBUG)
584 fprintf(stderr, "poolflush: opts = %#x\n", opts);
585
586 if (!(opts & (OPT_DONOTHING|OPT_DONTOPEN)) && (fd == -1)) {
587 fd = open(IPLOOKUP_NAME, O_RDWR);
588 if (fd == -1) {

--- 516 unchanged lines hidden ---