]> The Tcpdump Group git mirrors - tcpdump/blobdiff - tcpdump.c
Include the CFLAGS setting when configure was run in the compiler flags.
[tcpdump] / tcpdump.c
index c4848aee843abbaddcce55b84a4e3a5412ba2916..06683af344a483ff5c9874d546e7aea165654afa 100644 (file)
--- a/tcpdump.c
+++ b/tcpdump.c
@@ -90,9 +90,9 @@ extern int SIZE_BUF;
 netdissect_options Gndo;
 netdissect_options *gndo = &Gndo;
 
-int dflag;                     /* print filter code */
-int Lflag;                     /* list available data link types and exit */
-char *zflag = NULL;            /* compress each savefile using a specified command (like gzip or bzip2) */
+static int dflag;                      /* print filter code */
+static int Lflag;                      /* list available data link types and exit */
+static char *zflag = NULL;             /* compress each savefile using a specified command (like gzip or bzip2) */
 
 static int infodelay;
 static int infoprint;
@@ -600,7 +600,7 @@ main(int argc, char **argv)
 
        opterr = 0;
        while (
-           (op = getopt(argc, argv, "aA" B_FLAG "c:C:d" D_FLAG "eE:fF:G:i:" I_FLAG "KlLm:M:nNOpqr:Rs:StT:u" U_FLAG "vw:W:xXy:Yz:Z:")) != -1)
+           (op = getopt(argc, argv, "aAb" B_FLAG "c:C:d" D_FLAG "eE:fF:G:i:" I_FLAG "KlLm:M:nNOpqr:Rs:StT:u" U_FLAG "vw:W:xXy:Yz:Z:")) != -1)
                switch (op) {
 
                case 'a':
@@ -610,6 +610,7 @@ main(int argc, char **argv)
                case 'A':
                        ++Aflag;
                        break;
+
                case 'b':
                        ++bflag;
                        break;