Start moving files to ui/ and ui/cli/ git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@41047 f5534014-38df-0310-8fa8-9805f1628bb7
Make some routines static that aren't used outside the source file in which they're defined. Include some header files that declare functions in the source files that define the functions. Declare packet_list_get_type() in gtk/packet_list_store.h, as it defines a macro that uses that function. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37223 f5534014-38df-0310-8fa8-9805f1628bb7
Simplified a #ifdef __WIN32. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35448 f5534014-38df-0310-8fa8-9805f1628bb7
Only call GetSystemMetrics(SM_REMOTESESSION) if running on MS Windows. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35207 f5534014-38df-0310-8fa8-9805f1628bb7
Simplify our Remote Desktop session detection. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35206 f5534014-38df-0310-8fa8-9805f1628bb7
From Jan Šafránek via bug 4945: Remove any '%<interface>' from default filter. Wireshark prepares unparseable default filter when it's started under 'ssh <link-local ipv6 address>%<interface name>' - '%' in SSH_CONNECTION is not allowed filter. Let's cut the '%<interface name>' from any IP addresses in default filters. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33349 f5534014-38df-0310-8fa8-9805f1628bb7
Squelch some compiler warnings. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32165 f5534014-38df-0310-8fa8-9805f1628bb7
Fix the last(?) of the Win64 compilation problems. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28065 f5534014-38df-0310-8fa8-9805f1628bb7
Fix a typo in a comment. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25970 f5534014-38df-0310-8fa8-9805f1628bb7
Rename a variable to avoid collisions with a global variable, as noted by John Smith. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25548 f5534014-38df-0310-8fa8-9805f1628bb7
Fix some of the Errors/warnings detected by checkapi. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25248 f5534014-38df-0310-8fa8-9805f1628bb7
Remove: #ifdef NEED_G_ASCII_STRCASECMP_H #include "g_ascii_strcasecmp.h" #endif git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24859 f5534014-38df-0310-8fa8-9805f1628bb7
Fix get_conn_cfilter() such that not an invalid capture filter is used on FreeBSD 7.0 systems. Now REMOTEHOST can be an empty string. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24834 f5534014-38df-0310-8fa8-9805f1628bb7
- Remove GLIB1 code - Change ugly GLIB version checking statements to GLIB_CHECK_VERSION - Remove ws_strsplit files because we no longer need to borrow GLIB2's g_strsplit code for the no longer supported GLIB1 builds git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24829 f5534014-38df-0310-8fa8-9805f1628bb7
Rewrote to use g_strlcpy and g_strlcat. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24531 f5534014-38df-0310-8fa8-9805f1628bb7
More rewrite of prohibited APIs (sprintf, strcpy, strcat). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24258 f5534014-38df-0310-8fa8-9805f1628bb7
some more path fixes for g_ascii_strcasecmp.h git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23638 f5534014-38df-0310-8fa8-9805f1628bb7
strcasecmp(), strncasecmp(), g_strcasecmp(), and g_strncasecmp() delenda est. Use g_ascii_strcasecmp() and g_ascii_strncasecmp(), and supply our own versions if they're missing from GLib (as is the case with GLib 1.x). In the code to build the list of named fields for Diameter, don't use g_strdown(); do our own g_ascii_-style upper-case to lower-case mapping in the hash function and use g_ascii_strcasecmp() in the compare function. We do this because there is no guarantee that toupper(), tolower(), and functions that use them will, for example, map between "I" and "i" in all locales; in Turkish locales, for example, there are, in both upper case and lower case, versions of "i" with and without a dot, and the upper-case version of "i" is "I"-with-a-dot and the lower-case version of "I" is "i"-without-a-dot. This causes strings that should match not to match. This finishes fixing bug 2010 - an earlier checkin prevented the crash (as there are other ways to produce the same crash, e.g. a bogus dictionary.xml file), but didn't fix the case-insensitive string matching. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23623 f5534014-38df-0310-8fa8-9805f1628bb7
From Sebastien Tandel: Create two new files (ws_strsplit.[ch]) that use GTK2 code to override the buggy g_strsplit() function when compiling for GTK1. Include this work-around function (ws_strsplit) in libwireshark.def. Add notes on usage to README.developer. Include epan/ws_strsplit.h in all files that use g_strsplit(). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20804 f5534014-38df-0310-8fa8-9805f1628bb7
When parsing DISPLAY, mirror what __X11TransConnectDisplay() does - and handle the case where the "host name" begins with "/", as some platforms might allow the pathname of a UNIX domain socket to be given in DISPLAY. Fix indentation of a comment. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20548 f5534014-38df-0310-8fa8-9805f1628bb7