]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-atalk.c
Fix spaces
[tcpdump] / print-atalk.c
index 6e1c3503d5e112603d5a7c951be2c5122902ac23..a40efe2a00a802410c99b4f8596bb68f91d2c423 100644 (file)
@@ -106,7 +106,7 @@ llap_print(netdissect_options *ndo,
                return (length);
        }
        if (!ND_TTEST_LEN(bp, sizeof(*lp))) {
-               ND_PRINT(" [|llap]");
+               nd_print_trunc(ndo);
                return (0);     /* cut short by the snapshot length */
        }
        lp = (const struct LAP *)bp;
@@ -221,7 +221,7 @@ aarp_print(netdissect_options *ndo,
        ap = (const struct aarp *)bp;
        if (!ND_TTEST_SIZE(ap)) {
                /* Just bail if we don't have the whole chunk. */
-               ND_PRINT(" [|aarp]");
+               nd_print_trunc(ndo);
                return;
        }
        if (length < sizeof(*ap)) {
@@ -479,13 +479,13 @@ nbp_print(netdissect_options *ndo,
 }
 
 /* print a counted string */
-static const char *
+static const u_char *
 print_cstring(netdissect_options *ndo,
-              const char *cp, const u_char *ep)
+              const u_char *cp, const u_char *ep)
 {
        u_int length;
 
-       if (cp >= (const char *)ep) {
+       if (cp >= ep) {
                nd_print_trunc(ndo);
                return (0);
        }
@@ -498,7 +498,7 @@ print_cstring(netdissect_options *ndo,
                return (0);
        }
        while (length != 0) {
-               if (cp >= (const char *)ep) {
+               if (cp >= ep) {
                        nd_print_trunc(ndo);
                        return (0);
                }
@@ -543,7 +543,7 @@ static const struct atNBPtuple *
 nbp_name_print(netdissect_options *ndo,
                const struct atNBPtuple *tp, const u_char *ep)
 {
-       const char *cp = (const char *)tp + nbpTupleSize;
+       const u_char *cp = (const u_char *)tp + nbpTupleSize;
 
        ND_PRINT(" ");