diff options
author | Bill Meier <wmeier@newsguy.com> | 2013-11-08 17:17:57 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2013-11-08 17:17:57 +0000 |
commit | 5a0809c718374e0162afb1fc1df8497f942d18fc (patch) | |
tree | fc7c486e0f93038e1f473a6bf60fc76a8610b782 /wiretap/netscreen.c | |
parent | 6159e98cd38ba8afa4e6587b75dfd82250357fd1 (diff) |
(Trivial) whitespace cleanup (mostly trailing whitespace).
svn path=/trunk/; revision=53172
Diffstat (limited to 'wiretap/netscreen.c')
-rw-r--r-- | wiretap/netscreen.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/wiretap/netscreen.c b/wiretap/netscreen.c index e3970ee40d..947cc8a533 100644 --- a/wiretap/netscreen.c +++ b/wiretap/netscreen.c @@ -88,7 +88,7 @@ static int parse_single_hex_dump_line(char* rec, guint8 *buf, static gboolean info_line(const gchar *line) { int i=NETSCREEN_SPACES_ON_INFO_LINE; - + while (i-- > 0) { if (isspace((guchar)*line)) { line++; @@ -187,7 +187,7 @@ int netscreen_open(wtap *wth, int *err, gchar **err_info) wth->subtype_read = netscreen_read; wth->subtype_seek_read = netscreen_seek_read; wth->tsprecision = WTAP_FILE_TSPREC_DSEC; - + return 1; } @@ -273,7 +273,7 @@ netscreen_seek_read(wtap *wth, gint64 seek_off, } /* Parses a packet record header. There are a few possible formats: - * + * * XXX list extra formats here! 6843828.0: trust(o) len=98:00121ebbd132->00600868d659/0800 192.168.1.1 -> 192.168.1.10/6 @@ -354,11 +354,11 @@ parse_netscreen_hex_dump(FILE_T fh, int pkt_len, const char *cap_int, if (*p == '\0') { break; } - + n = parse_single_hex_dump_line(p, pd, offset); /* the smallest packet has a length of 6 bytes, if - * the first hex-data is less then check whether + * the first hex-data is less then check whether * it is a info-line and act accordingly */ if (offset == 0 && n < 6) { @@ -385,7 +385,7 @@ parse_netscreen_hex_dump(FILE_T fh, int pkt_len, const char *cap_int, /* Adjust the offset to the data that was just added to the buffer */ offset += n; - /* If there was more hex-data than was announced in the len=x + /* If there was more hex-data than was announced in the len=x * header, then then there must be an error in the file */ if(offset > pkt_len) { @@ -411,7 +411,7 @@ parse_netscreen_hex_dump(FILE_T fh, int pkt_len, const char *cap_int, */ g_snprintf(dststr, 13, "%02x%02x%02x%02x%02x%02x", pd[0], pd[1], pd[2], pd[3], pd[4], pd[5]); - if (strncmp(dststr, cap_dst, 12) == 0) + if (strncmp(dststr, cap_dst, 12) == 0) phdr->pkt_encap = WTAP_ENCAP_ETHERNET; else phdr->pkt_encap = WTAP_ENCAP_PPP; |