diff options
author | Mike Frantzen <frantzen@cvs.openbsd.org> | 2002-03-26 17:37:12 +0000 |
---|---|---|
committer | Mike Frantzen <frantzen@cvs.openbsd.org> | 2002-03-26 17:37:12 +0000 |
commit | 27cb6162348f3c20f80e859b67d3f9776f12f829 (patch) | |
tree | d351a0333a8f49ab5141db48486b9084339c4aa6 /sbin/pfctl | |
parent | 0cc72878fa57eba8b70c0ec98d5ca519d9f83856 (diff) |
tidy up usage statement and sort headers. patch from dfa@solo.ee
Diffstat (limited to 'sbin/pfctl')
-rw-r--r-- | sbin/pfctl/pfctl.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/sbin/pfctl/pfctl.c b/sbin/pfctl/pfctl.c index e2a61319938..707925d0966 100644 --- a/sbin/pfctl/pfctl.c +++ b/sbin/pfctl/pfctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfctl.c,v 1.56 2002/03/25 22:05:49 frantzen Exp $ */ +/* $OpenBSD: pfctl.c,v 1.57 2002/03/26 17:37:11 frantzen Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -33,20 +33,21 @@ #include <sys/types.h> #include <sys/ioctl.h> #include <sys/socket.h> + #include <net/if.h> #include <netinet/in.h> #include <net/pfvar.h> #include <arpa/inet.h> +#include <err.h> +#include <errno.h> +#include <fcntl.h> +#include <limits.h> +#include <netdb.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> -#include <fcntl.h> -#include <errno.h> -#include <err.h> -#include <limits.h> -#include <netdb.h> #include "pfctl_parser.h" @@ -173,10 +174,11 @@ usage() { extern char *__progname; - fprintf(stderr, "usage: %s [-dehnqrv] [-F set] [-l interface] ", - __progname); - fprintf(stderr, "[-N file] [-O level] [-R file] [-s set] [-t set] " - "[-x level] [-z]\n"); + fprintf(stderr, "usage: %s [-dehnqrvz] [-F modifier] ", __progname); + fprintf(stderr, "[-N file] [-O level] [-R file] [-k host] "); + fprintf(stderr, "[-l interface] [-m modifier] [-s modifier] "); + fprintf(stderr, "[-t modifier] [-x level]\n"); + exit(1); } @@ -912,8 +914,6 @@ pfctl_clear_rule_counters(int dev, int opts) int main(int argc, char *argv[]) { - extern char *optarg; - extern int optind; int error = 0; int dev = -1; int ch; |