]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Remove some trailing spaces/tabs
authorFrancois-Xavier Le Bail <[email protected]>
Sat, 13 Jun 2020 12:55:27 +0000 (14:55 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Sat, 13 Jun 2020 13:37:20 +0000 (15:37 +0200)
Moreover:
Remove some spaces before tabs.
Remove extra blank line.

.travis.yml
print-babel.c
print-macsec.c

index b5a23525de9254dd36e3090acc3c601c06d5ff2f..32094a75ef04cd694f74fdbc01cf5e649e7f12de 100644 (file)
@@ -42,7 +42,7 @@ compiler:
 #
 #    https://docs.travis-ci.com/user/build-matrix/#fast-finishing
 #
-# "If some rows in the build matrix are allowed to fail, the build 
+# "If some rows in the build matrix are allowed to fail, the build
 # won't be marked as finished until they have completed.
 #
 # To mark the build as finished as soon as possible, add fast_finish:
index 6e7487109e76486d3589212c81d19d9daa338c29..8b495cc1d9c4f476de04bb18c70c3f0b7357c342 100644 (file)
@@ -50,7 +50,6 @@
 #include "addrtoname.h"
 #include "extract.h"
 
-
 static void babel_print_v2(netdissect_options *, const u_char *cp, u_int length);
 
 void
@@ -386,7 +385,7 @@ babel_print_v2_tlvs(netdissect_options *ndo,
     u_char v4_prefix[16] =
         {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0xFF, 0xFF, 0, 0, 0, 0 };
     u_char v6_prefix[16] = {0};
+
     i = 0;
     while(i < tlvs_length) {
         const u_char *message;
@@ -759,7 +758,7 @@ babel_print_v2_tlvs(netdissect_options *ndo,
         case MESSAGE_MAC: {
             if (!ndo->ndo_vflag)
                 ND_PRINT(" mac");
-            else { 
+            else {
                 ND_PRINT("\n\tMAC ");
                 ND_PRINT("len %u", len);
             }
@@ -847,8 +846,8 @@ babel_print_v2(netdissect_options *ndo,
 
     /* If there's a trailer, process the TLVs in the trailer */
     if (length != 0) {
-       if(ndo->ndo_vflag) ND_PRINT("\n\t----");
-       else ND_PRINT(" |");
+       if(ndo->ndo_vflag) ND_PRINT("\n\t----");
+       else ND_PRINT(" |");
         ret = babel_print_v2_tlvs(ndo, cp, length, length);
         if (ret == -1)
             goto trunc;
index 431ae42c59fcbb6c70b658cc1ae9e492cd64a18b..905e9f9561f4660ddfc79092662d28d9a396b5dd 100644 (file)
@@ -104,7 +104,7 @@ static void macsec_print_header(netdissect_options *ndo,
 
        if (GET_U_1(sectag->tci_an) & MACSEC_TCI_SC)
                ND_PRINT(", sci " SCI_FMT, GET_BE_U_8(sectag->secure_channel_id));
-               
+
        ND_PRINT(", ");
 }
 
@@ -152,7 +152,7 @@ int macsec_print(netdissect_options *ndo, const u_char **bp,
        } else
                sectag_len = MACSEC_SECTAG_LEN_NOSCI;
 
-       if ((GET_U_1(sectag->short_length) & ~MACSEC_SL_MASK) != 0 || 
+       if ((GET_U_1(sectag->short_length) & ~MACSEC_SL_MASK) != 0 ||
            GET_U_1(sectag->tci_an) & MACSEC_TCI_VERSION) {
                nd_print_invalid(ndo);
                ndo->ndo_protocol = save_protocol;
@@ -245,7 +245,7 @@ int macsec_print(netdissect_options *ndo, const u_char **bp,
                if (*caplenp > short_length)
                        *caplenp = short_length;
        }
-               
+
        ndo->ndo_protocol = save_protocol;
        return -1;
 }