Wireshark-bugs: [Wireshark-bugs] [Bug 2438] New: suggested edits for web page(s)

Date: Wed, 9 Apr 2008 20:23:33 +0000 (GMT)
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2438

           Summary: suggested edits for web page(s)
           Product: Web sites
           Version: N/A
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Trivial
          Priority: Low
         Component: Main site - www.wireshark.org
        AssignedTo: wireshark-bugs@xxxxxxxxxxxxx
        ReportedBy: acferen@xxxxxxxxx


Build Information:
http://www.wireshark.org/docs/wsdg_html_chunked/ChDissectAdd.html
--
Not sure how to submit a patch for the website.  So in example 9.2...

void
proto_reg_handoff_foo(void)
{
        static gboolean initialized = FALSE;

        if (!initialized) {
                foo_handle = create_dissector_handle(dissect_foo, proto_foo);
                dissector_add("udp.port", global_foo_port, foo_handle);
        }
}

Should set initialized = TRUE 

new example:

void
proto_reg_handoff_foo(void)
{
        static gboolean initialized = FALSE;

        if (!initialized) {
                foo_handle = create_dissector_handle(dissect_foo, proto_foo);
                dissector_add("udp.port", global_foo_port, foo_handle);
                initialized = TRUE;
        }
}

also initialize is typoed as initialise in several places on the page.


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