diff options
author | Guy Harris <guy@alum.mit.edu> | 2016-01-19 16:49:05 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2016-01-20 00:49:36 +0000 |
commit | 106da4ad5f8f2e18a0382148a3c746793a5c55e4 (patch) | |
tree | df3613cc65dbcb70a23a529e4de24426fe418b67 | |
parent | 0cb2311a245d7a7a7375f818f8ce2fa11c9901ae (diff) |
Fix indentation.
Change-Id: I9fc0b8f98439ac37d4356e742d8c411e2dce473f
Reviewed-on: https://code.wireshark.org/review/13425
Reviewed-by: Guy Harris <guy@alum.mit.edu>
-rw-r--r-- | wiretap/iseries.c | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/wiretap/iseries.c b/wiretap/iseries.c index 1f04e8572a..de29446193 100644 --- a/wiretap/iseries.c +++ b/wiretap/iseries.c @@ -327,38 +327,38 @@ iseries_check_file_type (wtap * wth, int *err, gchar **err_info, int format) break; } - /* - * Check that we are dealing with an ETHERNET trace - */ - if (iseries->format == ISERIES_FORMAT_UNICODE) - { - iseries_UNICODE_to_ASCII ((guint8 *)buf, ISERIES_LINE_LENGTH); - } - ascii_strup_inplace (buf); - num_items_scanned = sscanf (buf, - "%*[ \n\t]OBJECT PROTOCOL%*[ .:\n\t]%8s", - protocol); - if (num_items_scanned == 1) - { - if (memcmp (protocol, "ETHERNET", 8) == 0) - { - *err = 0; - is_iseries = TRUE; - } - } + /* + * Check that we are dealing with an ETHERNET trace + */ + if (iseries->format == ISERIES_FORMAT_UNICODE) + { + iseries_UNICODE_to_ASCII ((guint8 *)buf, ISERIES_LINE_LENGTH); + } + ascii_strup_inplace (buf); + num_items_scanned = sscanf (buf, + "%*[ \n\t]OBJECT PROTOCOL%*[ .:\n\t]%8s", + protocol); + if (num_items_scanned == 1) + { + if (memcmp (protocol, "ETHERNET", 8) == 0) + { + *err = 0; + is_iseries = TRUE; + } + } - /* - * The header is the only place where the date part of the timestamp is held, so - * extract it here and store for all packets to access - */ - num_items_scanned = sscanf (buf, - "%*[ \n\t]START DATE/TIME%*[ .:\n\t]%2d/%2d/%2d", - &iseries->month, &iseries->day, - &iseries->year); - if (num_items_scanned == 3) - { - iseries->have_date = TRUE; - } + /* + * The header is the only place where the date part of the timestamp is held, so + * extract it here and store for all packets to access + */ + num_items_scanned = sscanf (buf, + "%*[ \n\t]START DATE/TIME%*[ .:\n\t]%2d/%2d/%2d", + &iseries->month, &iseries->day, + &iseries->year); + if (num_items_scanned == 3) + { + iseries->have_date = TRUE; + } } if (is_iseries) |