Commit Graph

15 Commits

Author SHA1 Message Date
Stephen Fisher 8fd3ee0560 Remove almost all of the casts I committed recently and in place of
them, add -Wno-pointer-sign to CFLAGS when gcc will accept it.


svn path=/trunk/; revision=21253
2007-03-28 21:55:11 +00:00
Stephen Fisher 8dabc0ded1 Fix some more warnings under gcc 4.0
svn path=/trunk/; revision=21237
2007-03-27 23:14:13 +00:00
Jaap Keuter 4ee6a1602c From Michel Marti:
The attached patch fixes decoding of the "X-Mms-Reply-Charging-Deadline" header.
According to the OMA-TS-MMS-ENC specs, this header is encoded like this:
  Reply-charging-deadline-value = Value-length \
    (Absolute-token Date-value | Relative-token Delta-seconds-value)

svn path=/trunk/; revision=20019
2006-11-30 07:12:59 +00:00
Ronnie Sahlberg feab79e328 change a whole bunch of ethereal into wireshark
svn path=/trunk/; revision=18196
2006-05-21 04:49:01 +00:00
Olivier Biot e931881626 Use g_print() instead of fprintf() to write messages to the debug console.
svn path=/trunk/; revision=16373
2005-11-01 18:18:46 +00:00
Ronnie Sahlberg ec3ab9ec3e rename ep_tvb_get_string() to tvb_get_ephemeral_string() asnd update the documentation in README.developer
svn path=/trunk/; revision=15270
2005-08-10 13:41:13 +00:00
Ronnie Sahlberg a156f46452 ememify the tvb_get_string call in mmse.
the strings mmse got from tvb_get_string were never released anyway
so this would resolve significant memory leakage in mmse.

there are still memleaks in mmse   but one step at a time


svn path=/trunk/; revision=15197
2005-08-02 17:34:14 +00:00
Ronnie Sahlberg fd34c9df89 recode the tvb_memdup() to use emem calls.
svn path=/trunk/; revision=15000
2005-07-22 23:04:52 +00:00
Guy Harris ab797734dd Get rid of the private "my_match_strval()" routine in many dissectors;
add a "match_strval_idx()" routine that does the same thing, and have
"match_strval()" call it.

Make those routines, and "val_to_str()", return a "const" pointer. 
Update dissectors as necessary to squelch compiler warnings produced by
that.

Use "val_to_str()" rather than using "match_strval()" and then, if the
result is null, substituting a specific string.  Clean up some other
"match_strval()"/"val_to_str()" usages.

Add a null pointer check in the NDPS dissector's "attribute_value()"
routine, as it's not clear that "global_attribute_name" won't be null at
that point.

Make some global variables in the AFS4INT dissector local.

Make some routines not used outside the module they're in static.

Make some tables "static const".

Clean up white space.

Fix Gerald's address in some files.

svn path=/trunk/; revision=14786
2005-06-26 19:56:52 +00:00
Gerald Combs f0795da8d6 Add some tvb_ensure_bytes_exist() calls.
svn path=/trunk/; revision=14163
2005-04-22 04:26:23 +00:00
Guy Harris 6a8b0221f4 From Chris Maynard: free strings even if we don't put them into the
protocol tree.

svn path=/trunk/; revision=12959
2005-01-05 10:27:22 +00:00
Guy Harris c415e09f20 Use "format_text()" on strings, to better handle non-printable
characters.

svn path=/trunk/; revision=12805
2004-12-21 20:36:50 +00:00
Guy Harris 5694ead821 Put the strings for the X-Mms-Previously-Sent-By header under the MMSE
tree rather than at the top level.

svn path=/trunk/; revision=12804
2004-12-21 20:03:47 +00:00
Ronnie Sahlberg cba7da7b6c abs_time_to_str() returns a staticly allocated string. dont g_free() it.
fix two instances of wrong parameter list to proto_tree_add_string_format()

if we call proto_tree_string()  the hf field has to be of a string format as well.



now it dissects christophe's capture without dumping core  but it looks weird.
mmse and telco people can read the specs and find ut what it wrong.



svn path=/trunk/; revision=12801
2004-12-21 16:44:11 +00:00
Gilbert Ramirez 669db206cb Move dissectors to epan/dissectors directory.
Also move ncp222.py, x11-fields, process-x11-fields.pl,
make-reg-dotc, and make-reg-dotc.py.

Adjust #include lines in files that include packet-*.h
files.

svn path=/trunk/; revision=11410
2004-07-18 18:06:47 +00:00