Wireshark-bugs: [Wireshark-bugs] [Bug 5803] New: capinfos: #ifdef HAVE_LIBGCRYPT block includes

Date: Mon, 4 Apr 2011 15:08:39 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5803

           Summary: capinfos: #ifdef HAVE_LIBGCRYPT block includes a line
                    too many
           Product: Wireshark
           Version: 1.4.4
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Low
         Component: Extras
        AssignedTo: wireshark-bugs@xxxxxxxxxxxxx
        ReportedBy: jpo@xxxxxxxxxxxx


Created an attachment (id=6125)
 --> (https://bugs.wireshark.org/bugzilla/attachment.cgi?id=6125)
Close the conditional block before "if (cap_in_order) ..."

Build Information:
Capinfos 1.4.4
--
The block #ifdef HAVE_LIBGCRYT ... #endif in the print_stats_table_header
function conditional protects a line too many:

#ifdef HAVE_LIBGCRYPT
  if (cap_file_hashes) {
                          print_stats_table_header_label("SHA1");
                          print_stats_table_header_label("RIPEMD160");
                          print_stats_table_header_label("MD5");
  }
  if (cap_in_order)       print_stats_table_header_label("Strict time order");
#endif /* HAVE_LIBGCRYPT */


The "if (cap_in_order) ..." should be outside the conditional block.

Note: The same conditional block in the  print_stats_table function is correct.

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.