]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-telnet.c
IPoIB: Add the output with -e for a capture test
[tcpdump] / print-telnet.c
index e6223d9bb7d90e2db468915d4e8c4114d2a19f5f..f2ff1389f17d4b0a6e326cf16050655502caa481 100644 (file)
@@ -497,7 +497,7 @@ telnet_parse(netdissect_options *ndo, const u_char *sp, u_int length, int print)
        }
 
 done:
-       return sp - osp;
+       return (int)(sp - osp);
 
 trunc:
        nd_print_trunc(ndo);
@@ -532,7 +532,7 @@ telnet_print(netdissect_options *ndo, const u_char *sp, u_int length)
                if (ndo->ndo_Xflag && 2 < ndo->ndo_vflag) {
                        if (first)
                                ND_PRINT("\nTelnet:");
-                       hex_print_with_offset(ndo, "\n", sp, l, sp - osp);
+                       hex_print_with_offset(ndo, "\n", sp, l, (u_int)(sp - osp));
                        if (l > 8)
                                ND_PRINT("\n\t\t\t\t");
                        else