Commit Graph

41 Commits

Author SHA1 Message Date
Bill Meier 27024a1d5a As suggested by Jakub Zawadzki: actually use sizeof(...) rather than a numeric constant in various places;
svn path=/trunk/; revision=27800
2009-03-19 17:49:11 +00:00
Stig Bjørlykke 18c5caa3d4 From Jakub Zawadzki:
Use non-formatting functions when appropriate.

svn path=/trunk/; revision=27709
2009-03-12 07:56:42 +00:00
Jaap Keuter 0855f501cc Set the packet details counter column to 1, as it's one expert info per packet.
svn path=/trunk/; revision=27261
2009-01-18 14:51:22 +00:00
Bill Meier c9898d7f6b #include <emem.h> not req'd
svn path=/trunk/; revision=26094
2008-08-26 02:53:21 +00:00
Stig Bjørlykke 1cfa1550e1 - Don't create illegal filter from context menu.
- Use filter defines from common header file.

svn path=/trunk/; revision=25313
2008-05-17 22:59:52 +00:00
Ulf Lamping 8e3e8b588f sort #includes by directories
svn path=/trunk/; revision=24968
2008-04-13 01:54:20 +00:00
Ulf Lamping d4ccf577a8 where it's not necessary, remove #include "compat_macros.h"
svn path=/trunk/; revision=24922
2008-04-12 01:02:59 +00:00
Ronnie Sahlberg 154e8f0892 add missing braces to unbreak the build
svn path=/trunk/; revision=24916
2008-04-11 23:12:24 +00:00
Ulf Lamping f9f87904c4 second round to replace SIGNAL_CONNECT with g_signal_connect
This requires some casts to be added and I just don't want to add casts at all possible places. So I compile and only add casts where the (MSVC) compiler has a hard time. 

Unfortunately this won't find any problems in Linux/Unix only code - I'll keep an eye on the buildbot and try to fix things as I'm going on ...

svn path=/trunk/; revision=24913
2008-04-11 21:39:16 +00:00
Ulf Lamping a471e1af90 replace ITEM_FACTORY_ENTRY and ITEM_FACTORY_STOCK_ENTRY with their required data values to build the menus
svn path=/trunk/; revision=24909
2008-04-11 20:21:05 +00:00
Anders Broman c973aa3830 Remove:
#ifdef NEED_G_ASCII_STRCASECMP_H
#include "g_ascii_strcasecmp.h"
#endif

svn path=/trunk/; revision=24868
2008-04-09 19:39:58 +00:00
Ulf Lamping 0e701b77ae remove GTK1 code
svn path=/trunk/; revision=24816
2008-04-06 23:20:23 +00:00
Guy Harris 88adb489c3 Add extra parenthesization, tweak name of argument to some macros to
more accurately reflect what it is.

svn path=/trunk/; revision=23814
2007-12-09 09:02:14 +00:00
Guy Harris 15f3b2c750 Add macros for various filter actions and types, and to combine them
into a callback argument and split a callback argument up.

svn path=/trunk/; revision=23747
2007-12-04 08:27:48 +00:00
Guy Harris a8ce49d758 More whitespace cleanup.
svn path=/trunk/; revision=23746
2007-12-04 07:53:23 +00:00
Guy Harris 353d921d66 Clean up indentation.
svn path=/trunk/; revision=23745
2007-12-04 07:50:44 +00:00
Guy Harris 3066148a2b Clean up indentation.
svn path=/trunk/; revision=23719
2007-12-03 21:55:44 +00:00
Ulf Lamping e4d7a5c236 fix bug #1594: compositions must be differentiated by both protocol and summary, not only the summary - otherwise this results in a single entry if two protocols share the same summary, e.g. TCP/UDP "Bad Checksum"
svn path=/trunk/; revision=23696
2007-12-02 10:13:57 +00:00
Ronnie Sahlberg 2830cf2045 fix the path to include g_ascii_strcasecmp.h
svn path=/trunk/; revision=23636
2007-11-28 01:23:09 +00:00
Guy Harris 9c89cdaaa3 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.

svn path=/trunk/; revision=23623
2007-11-27 18:52:51 +00:00
Jeff Morriss 22d2547547 Fix a couple "cast to pointer from integer of different size" warnings when building with GTK1.2 on Redhat AS4 64-bit
svn path=/trunk/; revision=22329
2007-07-16 22:19:59 +00:00
Sebastien Tandel 76729e5d0f From David Howells :
Fix compilation failures when building wireshark-0.99.6-SVN-21916 on an
x86_64-unknown-linux-gnu target with gcc version 4.1.2 20070403 (Red Hat
4.1.2-8).

The failures fall into two categories:
  (1) Casts between pointers and 32-bit integers without an intermediary cast
via 'long' or 'unsigned long'.  This results in a compiler warning complaining
about casts between a pointer and an integer of a different size.
  (2) Passing values to "%lld" or similar printf-style format options that the
compiler thinks are a different size.  Such values need to be cast to 'long
long' or 'unsigned long long'.

svn path=/trunk/; revision=21975
2007-05-29 02:43:18 +00:00
Stephen Fisher 94e4258172 Fix bug #1547: Expert Info Composite column "Count" is not sorting numerically
svn path=/trunk/; revision=21485
2007-04-20 23:10:03 +00:00
Jeff Morriss 0787b688cc Squelch a few unused parameter warnings.
svn path=/trunk/; revision=20863
2007-02-19 15:30:06 +00:00
Stephen Fisher 2267c19248 Fix various compiler warnings
svn path=/trunk/; revision=20522
2007-01-22 00:20:33 +00:00
Guy Harris a46a240662 We only need to add the tree view to its containing scrolled window
once.  (Subsequent attempts produce a warning and do nothing.)

Clean up indentation.

svn path=/trunk/; revision=20107
2006-12-11 03:32:01 +00:00
Ronnie Sahlberg 34cf894ed2 g_strdup takes one parameter not two
svn path=/trunk/; revision=19999
2006-11-27 09:42:19 +00:00
Ronnie Sahlberg 27c151c3d6 remove unused variable: tooltips
svn path=/trunk/; revision=19998
2006-11-27 09:40:08 +00:00
Guy Harris d3fed959bc Have separate proto_construct_match_selected_string() and
proto_can_match_selected() routines, to more clearly separate the two
functions - but have them both call the same underlying routine, so
they both make the same decisions as to whether a match-selected string
can be constructed or not.

svn path=/trunk/; revision=19976
2006-11-24 18:25:23 +00:00
Guy Harris 37a6c02697 Rename proto_construct_dfilter_string() to
proto_construct_match_selected_string() to indicate what it does - and
have it return a Boolean indication of whether the string could be
built, returning the string through a pointer, and, if that pointer is
null, have it just return the Boolean and not construct the string.

Get rid of proto_can_match_selected() -
proto_construct_match_selected_string() can be used for that, which
means we have only one piece of code that knows whether a "match
selected" string can be constructed or not.

Have proto_construct_match_selected_string() support matching
zero-length FT_NONE (and FT_PCRE, but that shouldn't happen) fields even
if there's no epan_dissect_t, as such a match just checks whether the
field is present.

svn path=/trunk/; revision=19967
2006-11-23 21:16:46 +00:00
Ulf Lamping a1b7a22a8e from Stephen Fisher:
Here is a patch for spelling typos in comments and strings in the gtk/ 
directories.

svn path=/trunk/; revision=19568
2006-10-17 01:29:55 +00:00
Ulf Lamping d4499eb9a7 move value_strings from expert_dialogs into expert.c to remove duplicates
keep the highest severity level of the current file (experimental)

svn path=/trunk/; revision=19104
2006-08-31 22:56:38 +00:00
Guy Harris 92552c2d76 Get rid of a bunch of "Ethereal"s and "ethereal"s in comments, GUI
strings, and function names.

svn path=/trunk/; revision=18205
2006-05-22 07:29:40 +00:00
Ronnie Sahlberg 89f022b12b name change
svn path=/trunk/; revision=18197
2006-05-21 05:12:17 +00:00
Guy Harris 24b903f8c7 Clean up indentation.
Get rid of extra g_strdup_printf() arguments (the argument list is
terminated by running out of formats in the format string, not by a
terminating null pointer).

svn path=/trunk/; revision=18151
2006-05-15 02:43:39 +00:00
Anders Broman 65dbbfa0ca From Greg Morris:
In summary these patches do the following:
1. GTK+ 2.x builds will now use Tree View to display the expert items, expanded items are the individual packet numbers.
2. GTK+ 1.x builds will continue to use the older clist functionality
3. Implements the equivilant of expert info (actually calls expert_dlg.c)

svn path=/trunk/; revision=18091
2006-05-04 15:36:41 +00:00
Guy Harris 68a1def103 Get rid of extra arguments in g_strdup_printf() calls (the end of the
list of arguments is determined by the format string; there's no need
for a NULL terminator).

Fix indentation.

svn path=/trunk/; revision=17674
2006-03-19 20:26:45 +00:00
Anders Broman ac21800c67 From Greg Morris:
- Change to display NCP connection for each conversation
- New NCP Endpoints. Please apply
expert_comp_table
- Use local variable space instead of pointer. The previous implementation utilized pointers and the values would change the table data.

svn path=/trunk/; revision=17446
2006-03-02 20:50:33 +00:00
Jaap Keuter 613d04a1ce Cleaning up copy to CSV code
svn path=/trunk/; revision=17064
2006-01-20 19:56:02 +00:00
Ulf Lamping 6244dc8ec9 fix a simple GTK1 warning
svn path=/trunk/; revision=16595
2005-11-25 23:54:19 +00:00
Ulf Lamping 5d66658184 from Greg Morris:
Composite Expert statistics, see: 
http://www.ethereal.com/lists/ethereal-dev/200511/msg00002.html
and the following discussions

svn path=/trunk/; revision=16593
2005-11-25 23:42:52 +00:00