Wireshark-bugs: [Wireshark-bugs] [Bug 1659] New: eth_dir_get_name macro is incorrect for glib 1

Date: Sat, 23 Jun 2007 04:21:03 +0000 (GMT)
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1659

           Summary: eth_dir_get_name macro is incorrect for glib 1
           Product: Wireshark
           Version: 0.99.5
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Minor
          Priority: Low
         Component: Wireshark
        AssignedTo: wireshark-bugs@xxxxxxxxxxxxx
        ReportedBy: jmmikkel@xxxxxxx


Build Information:
N/A
--
In the wiretap/file_util.h file, an "eth_dir_get_name" preprocessor macro is
defined. If GLIB_MAJOR_VERSION is not >= 2, it's defined to:

#define eth_dir_get_name(dirent)    (gchar *)file->d_name

which means that using this macro only works if the ETH_DIRENT used is named
"file". It can obviously be worked around, but it would still be nice to change
it to (gchar *)dirent->d_name so that it always works correctly.


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