X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/111ff8a61dd320445f1d5167559cf65bfc2c26ca..edb0e92cdcaf06168a38e632847b8fd2c0a62a2d:/print-ascii.c?ds=sidebyside diff --git a/print-ascii.c b/print-ascii.c index 405621b4..1bbc8be4 100644 --- a/print-ascii.c +++ b/print-ascii.c @@ -42,11 +42,10 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-ascii.c,v 1.8 2002-06-11 17:08:42 itojun Exp $"; + "@(#) $Header: /tcpdump/master/tcpdump/print-ascii.c,v 1.10 2002-09-05 00:00:10 guy Exp $"; #endif +#include #include -#include -#include #include "interface.h" @@ -66,7 +65,7 @@ ascii_print_with_offset(register const u_char *cp, register u_int length, register int nshorts; char hexstuff[HEXDUMP_SHORTS_PER_LINE*HEXDUMP_HEXSTUFF_PER_SHORT+1], *hsp; char asciistuff[ASCII_LINELENGTH+1], *asp; - int maxlength = (Aflag ? ASCII_LINELENGTH : HEXDUMP_SHORTS_PER_LINE); + u_int maxlength = (Aflag ? ASCII_LINELENGTH : HEXDUMP_SHORTS_PER_LINE); nshorts = length / sizeof(u_short); i = 0;